diff options
| author | Sefa Eyeoglu <contact@scrumplex.net> | 2024-06-13 19:33:18 +0200 |
|---|---|---|
| committer | Sefa Eyeoglu <contact@scrumplex.net> | 2024-06-13 19:33:18 +0200 |
| commit | a4f59d327a02338b8342d83931758e6a17a85e00 (patch) | |
| tree | e79457ea1d969c4f22364a41b79ecdadc883a228 | |
| parent | bd3030419a2028285de1f31d984bc7ed4ee3c46c (diff) | |
| download | Project-Tick-a4f59d327a02338b8342d83931758e6a17a85e00.tar.gz Project-Tick-a4f59d327a02338b8342d83931758e6a17a85e00.zip | |
fix(updateNeoForge): don't include mcpatch if 0
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
| -rw-r--r-- | meta/run/update_neoforge.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/run/update_neoforge.py b/meta/run/update_neoforge.py index 826981aed1..60b94ec6b1 100644 --- a/meta/run/update_neoforge.py +++ b/meta/run/update_neoforge.py @@ -162,7 +162,9 @@ def main(): match_nf = neoforge_version_re.match(long_version) if match_nf: - mc_version = f"1.{match_nf.group('mcminor')}.{match_nf.group('mcpatch')}" + mc_version = f"1.{match_nf.group('mcminor')}" + if match_nf.group("mcpatch") != "0": + mc_version += f".{match_nf.group('mcpatch')}" build = int(match_nf.group("number")) version = match_nf.group("number") branch = match_nf.group("tag") |
