mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-24 03:25:29 +01:00
Fix a bad world cast on forge 1.7.10
This commit is contained in:
parent
e26cdc6112
commit
0d10c1b690
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user