Skip to content

Commit

Permalink
Added version selection, please run once the snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
hube12 authored Sep 4, 2019
1 parent 577c739 commit baa4e44
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def remap(version):
specialsource = specialsource.resolve()

subprocess.run(['java', '-jar', specialsource.__str__(), '--in-jar', path.__str__(), '--out-jar',
f'./src/{version}-temp.jar', '--srg-in', mapp.__str__(),"--kill-lvt"], shell=True)
f'./src/{version}-temp.jar', '--srg-in', mapp.__str__(), "--kill-lvt"], shell=True)

print(f'- New -> {version}-temp.jar')

Expand Down Expand Up @@ -129,7 +129,7 @@ def makePaths(version):

if not path.exists():
path.mkdir(parents=True)
path=Path(f'src/{version}')
path = Path(f'src/{version}')
if not path.exists():
path.mkdir(parents=True)
else:
Expand All @@ -144,10 +144,11 @@ def makePaths(version):
path.mkdir(parents=True)
return version


if __name__ == "__main__":
print("Please Run once the snapshot/version on your computer")
print("Please Run once the snapshot/version on your computer")
version = input("Please input a valid version starting from 19w36a") or "19w36a"
decompVersion=makePaths(version)
decompVersion = makePaths(version)
r = input('Download mappings? (y/n): ')
if r == 'y':
getMappings(version)
Expand Down

0 comments on commit baa4e44

Please sign in to comment.