mirror of
https://github.com/unmojang/meta.git
synced 2025-09-23 03:01:21 -04:00
fix(updateNeoForge): don't include mcpatch if 0
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
bd3030419a
commit
a4f59d327a
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user