This commit is contained in:
Jesse Boyd 2016-09-19 13:49:52 +10:00
parent 87e03f835c
commit 326dcab1f1
4 changed files with 17 additions and 4 deletions

View File

@ -12,6 +12,7 @@ import com.boydti.fawe.util.MainUtil;
import com.boydti.fawe.util.TaskManager;
import com.boydti.fawe.wrappers.WorldWrapper;
import com.mojang.authlib.GameProfile;
import com.sk89q.worldedit.EditSession;
import com.sk89q.worldedit.forge.ForgeWorld;
import com.sk89q.worldedit.world.World;
import java.io.File;
@ -105,7 +106,10 @@ public class FaweForge implements IFawe {
if (world instanceof WorldWrapper) {
world = ((WorldWrapper) world).getParent();
}
return getWorldName((world).getWorld());
else if (world instanceof EditSession) {
world = ((EditSession) world).getWorld();
}
return getWorldName(((ForgeWorld) world).getWorld());
}

View File

@ -11,6 +11,7 @@ import com.boydti.fawe.regions.FaweMaskManager;
import com.boydti.fawe.util.MainUtil;
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.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
@ -102,8 +103,10 @@ public class FaweForge implements IFawe {
if (world instanceof WorldWrapper) {
world = ((WorldWrapper) world).getParent();
}
else if (world instanceof EditSession) {
world = ((EditSession) world).getWorld();
}
return getWorldName(((ForgeWorld) world).getWorld());
}
public String getWorldName(net.minecraft.world.World w) {

View File

@ -12,6 +12,7 @@ import com.boydti.fawe.util.MainUtil;
import com.boydti.fawe.util.TaskManager;
import com.boydti.fawe.wrappers.WorldWrapper;
import com.mojang.authlib.GameProfile;
import com.sk89q.worldedit.EditSession;
import com.sk89q.worldedit.forge.ForgeWorld;
import com.sk89q.worldedit.world.World;
import java.io.File;
@ -105,8 +106,10 @@ public class FaweForge implements IFawe {
if (world instanceof WorldWrapper) {
world = ((WorldWrapper) world).getParent();
}
else if (world instanceof EditSession) {
world = ((EditSession) world).getWorld();
}
return getWorldName(((ForgeWorld) world).getWorld());
}
public String getWorldName(net.minecraft.world.World w) {

View File

@ -12,6 +12,7 @@ import com.boydti.fawe.util.MainUtil;
import com.boydti.fawe.util.TaskManager;
import com.boydti.fawe.wrappers.WorldWrapper;
import com.mojang.authlib.GameProfile;
import com.sk89q.worldedit.EditSession;
import com.sk89q.worldedit.forge.ForgeWorld;
import com.sk89q.worldedit.world.World;
import java.io.File;
@ -105,8 +106,10 @@ public class FaweForge implements IFawe {
if (world instanceof WorldWrapper) {
world = ((WorldWrapper) world).getParent();
}
else if (world instanceof EditSession) {
world = ((EditSession) world).getWorld();
}
return getWorldName(((ForgeWorld) world).getWorld());
}
public String getWorldName(net.minecraft.world.World w) {