Fix python error

This commit is contained in:
LexManos 2012-11-19 15:03:13 -08:00
parent 786b04c57d
commit 5e5919f61c

View file

@ -440,8 +440,10 @@ def apply_fml_patches(fml_dir, mcp_dir, src_dir, copy_files=True):
#Delete /common/cpw to get rid of the Side/SideOnly classes used in decompilation
cpw_mc_dir = os.path.join(src_dir, 'minecraft', 'cpw')
cpw_com_dir = os.path.join(src_dir, 'common', 'cpw')
if os.path.isdir(cpw_mc_dir) shutil.rmtree(cpw_mc_dir)
if os.path.isdir(cpw_com_dir) shutil.rmtree(cpw_com_dir)
if os.path.isdir(cpw_mc_dir):
shutil.rmtree(cpw_mc_dir)
if os.path.isdir(cpw_com_dir):
shutil.rmtree(cpw_com_dir)
#patch files
print 'Applying Forge ModLoader patches'