Skip to content

Commit

Permalink
Update special source to fix decompilation on 1.20.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hube12 committed Apr 13, 2024
1 parent 5e386dc commit 3a8aa87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file added lib/SpecialSource-1.11.4.jar
Binary file not shown.
Binary file removed lib/SpecialSource-1.9.1.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
assert sys.version_info >= (3, 7)

CFR_VERSION = "0.152"
SPECIAL_SOURCE_VERSION = "1.11.4"
MANIFEST_LOCATION = "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json"
CLIENT = "client"
SERVER = "server"
Expand Down Expand Up @@ -306,7 +307,7 @@ def remap(version, side, quiet):
sys.exit(-1)
path = path_temp
mapp = Path(f'mappings/{version}/{side}.tsrg')
specialsource = Path('./lib/SpecialSource-1.9.1.jar')
specialsource = Path(f'./lib/SpecialSource-{SPECIAL_SOURCE_VERSION}.jar')
if path.exists() and mapp.exists() and specialsource.exists() and path.is_file() and mapp.is_file() and specialsource.is_file():
path = path.resolve()
mapp = mapp.resolve()
Expand All @@ -325,7 +326,7 @@ def remap(version, side, quiet):
else:
if not quiet:
print(
f'ERROR: Missing files: ./lib/SpecialSource-1.8.6.jar or mappings/{version}/{side}.tsrg or versions/{version}/{side}.jar')
f'ERROR: Missing files: ./lib/SpecialSource-{SPECIAL_SOURCE_VERSION}.jar or mappings/{version}/{side}.tsrg or versions/{version}/{side}.jar')
input("Aborting, press anything to exit")
sys.exit(-1)

Expand Down

0 comments on commit 3a8aa87

Please sign in to comment.