mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Append a .class to the diff file list. Now you should just be able to iterate it and read every file in it directly.
This commit is contained in:
1 parent
e828c1793d
commit
ba7f0a8429
1 file changed
+2
-1
@@ -26,6 +26,7 @@ def main():
|
||||
for row in srg_data['CL']:
|
||||
classes[row['deobf_name']] = row['obf_name']
|
||||
|
||||
print(difflist)
|
||||
with open(list_file, 'w') as fh:
|
||||
for diff in difflist.splitlines():
|
||||
diffrow=diff.strip().split()
|
||||
@@ -34,7 +35,7 @@ def main():
|
||||
clazz=classes[clazz]
|
||||
if clazz.startswith("net/minecraft/src/"):
|
||||
clazz=clazz[len("net/minecraft/src/"):]
|
||||
fh.write("minecraft_server/%s\n" %(clazz))
|
||||
fh.write("minecraft_server/%s.class\n" %(clazz))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in new issue
Block a user