Fix commands.py to always include the two side classes so the fml jars are valid.

This commit is contained in:
Christian 2012-08-11 14:01:27 -04:00
parent 85f665dd1d
commit 5a0d08b892
1 changed files with 11 additions and 1 deletions

View File

@ -152,7 +152,17 @@
dirs = ' '.join(pkglist)
forkcmd = self.cmdastyle.format(classes=dirs, conffile=self.astyleconf)
self.runcmd(forkcmd)
@@ -1592,6 +1622,9 @@
@@ -1526,6 +1556,9 @@
trgclasses.append(key)
self.logger.info('> Unchanged class found: %s', key)
classes = {}
+ for key in [ 'cpw/mods/fml/common/asm/SideOnly.class', 'cpw/mods/fml/common/Side.class' ]:
+ self.logger.info('> Forcing FML class: %s', key)
+ trgclasses.append(key)
srg_data = parse_srg(srglk[side])
for row in srg_data['CL']:
classes[row['deobf_name']] = row['obf_name']
@@ -1592,6 +1625,9 @@
sys.exit(1)
for entry in newfiles: