Fix a bad world cast on forge 1.7.10

This commit is contained in:
Petrus 2018-10-25 06:04:12 -03:00
parent e26cdc6112
commit 0d10c1b690

View File

@ -13,6 +13,7 @@ import com.boydti.fawe.util.TaskManager;
import com.boydti.fawe.wrappers.WorldWrapper;
import com.sk89q.worldedit.EditSession;
import com.sk89q.worldedit.forge.ForgeWorld;
import com.sk89q.worldedit.internal.LocalWorldAdapter;
import com.sk89q.worldedit.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.ModMetadata;
@ -148,6 +149,8 @@ public class FaweForge implements IFawe {
e.printStackTrace();
return world.getName();
}
}else if (world instanceof LocalWorldAdapter){
return world.getName();
}
return getWorldName(((ForgeWorld) world).getWorld());
}