mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Fix python error
This commit is contained in:
1 parent
57bf64318b
commit
5945279b8b
1 file changed
+4
-2
+4
-2
@@ -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
|
#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_mc_dir = os.path.join(src_dir, 'minecraft', 'cpw')
|
||||||
cpw_com_dir = os.path.join(src_dir, 'common', '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_mc_dir):
|
||||||
if os.path.isdir(cpw_com_dir) shutil.rmtree(cpw_com_dir)
|
shutil.rmtree(cpw_mc_dir)
|
||||||
|
if os.path.isdir(cpw_com_dir):
|
||||||
|
shutil.rmtree(cpw_com_dir)
|
||||||
|
|
||||||
#patch files
|
#patch files
|
||||||
print 'Applying Forge ModLoader patches'
|
print 'Applying Forge ModLoader patches'
|
||||||
|
|||||||
Reference in new issue
Block a user