This commit is contained in:
parent
87e03f835c
commit
326dcab1f1
@ -12,6 +12,7 @@ import com.boydti.fawe.util.MainUtil;
|
|||||||
import com.boydti.fawe.util.TaskManager;
|
import com.boydti.fawe.util.TaskManager;
|
||||||
import com.boydti.fawe.wrappers.WorldWrapper;
|
import com.boydti.fawe.wrappers.WorldWrapper;
|
||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
|
import com.sk89q.worldedit.EditSession;
|
||||||
import com.sk89q.worldedit.forge.ForgeWorld;
|
import com.sk89q.worldedit.forge.ForgeWorld;
|
||||||
import com.sk89q.worldedit.world.World;
|
import com.sk89q.worldedit.world.World;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -105,7 +106,10 @@ public class FaweForge implements IFawe {
|
|||||||
if (world instanceof WorldWrapper) {
|
if (world instanceof WorldWrapper) {
|
||||||
world = ((WorldWrapper) world).getParent();
|
world = ((WorldWrapper) world).getParent();
|
||||||
}
|
}
|
||||||
return getWorldName((world).getWorld());
|
else if (world instanceof EditSession) {
|
||||||
|
world = ((EditSession) world).getWorld();
|
||||||
|
}
|
||||||
|
return getWorldName(((ForgeWorld) world).getWorld());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ import com.boydti.fawe.regions.FaweMaskManager;
|
|||||||
import com.boydti.fawe.util.MainUtil;
|
import com.boydti.fawe.util.MainUtil;
|
||||||
import com.boydti.fawe.util.TaskManager;
|
import com.boydti.fawe.util.TaskManager;
|
||||||
import com.boydti.fawe.wrappers.WorldWrapper;
|
import com.boydti.fawe.wrappers.WorldWrapper;
|
||||||
|
import com.sk89q.worldedit.EditSession;
|
||||||
import com.sk89q.worldedit.forge.ForgeWorld;
|
import com.sk89q.worldedit.forge.ForgeWorld;
|
||||||
import com.sk89q.worldedit.world.World;
|
import com.sk89q.worldedit.world.World;
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
@ -102,8 +103,10 @@ public class FaweForge implements IFawe {
|
|||||||
if (world instanceof WorldWrapper) {
|
if (world instanceof WorldWrapper) {
|
||||||
world = ((WorldWrapper) world).getParent();
|
world = ((WorldWrapper) world).getParent();
|
||||||
}
|
}
|
||||||
|
else if (world instanceof EditSession) {
|
||||||
|
world = ((EditSession) world).getWorld();
|
||||||
|
}
|
||||||
return getWorldName(((ForgeWorld) world).getWorld());
|
return getWorldName(((ForgeWorld) world).getWorld());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getWorldName(net.minecraft.world.World w) {
|
public String getWorldName(net.minecraft.world.World w) {
|
||||||
|
@ -12,6 +12,7 @@ import com.boydti.fawe.util.MainUtil;
|
|||||||
import com.boydti.fawe.util.TaskManager;
|
import com.boydti.fawe.util.TaskManager;
|
||||||
import com.boydti.fawe.wrappers.WorldWrapper;
|
import com.boydti.fawe.wrappers.WorldWrapper;
|
||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
|
import com.sk89q.worldedit.EditSession;
|
||||||
import com.sk89q.worldedit.forge.ForgeWorld;
|
import com.sk89q.worldedit.forge.ForgeWorld;
|
||||||
import com.sk89q.worldedit.world.World;
|
import com.sk89q.worldedit.world.World;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -105,8 +106,10 @@ public class FaweForge implements IFawe {
|
|||||||
if (world instanceof WorldWrapper) {
|
if (world instanceof WorldWrapper) {
|
||||||
world = ((WorldWrapper) world).getParent();
|
world = ((WorldWrapper) world).getParent();
|
||||||
}
|
}
|
||||||
|
else if (world instanceof EditSession) {
|
||||||
|
world = ((EditSession) world).getWorld();
|
||||||
|
}
|
||||||
return getWorldName(((ForgeWorld) world).getWorld());
|
return getWorldName(((ForgeWorld) world).getWorld());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getWorldName(net.minecraft.world.World w) {
|
public String getWorldName(net.minecraft.world.World w) {
|
||||||
|
@ -12,6 +12,7 @@ import com.boydti.fawe.util.MainUtil;
|
|||||||
import com.boydti.fawe.util.TaskManager;
|
import com.boydti.fawe.util.TaskManager;
|
||||||
import com.boydti.fawe.wrappers.WorldWrapper;
|
import com.boydti.fawe.wrappers.WorldWrapper;
|
||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
|
import com.sk89q.worldedit.EditSession;
|
||||||
import com.sk89q.worldedit.forge.ForgeWorld;
|
import com.sk89q.worldedit.forge.ForgeWorld;
|
||||||
import com.sk89q.worldedit.world.World;
|
import com.sk89q.worldedit.world.World;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -105,8 +106,10 @@ public class FaweForge implements IFawe {
|
|||||||
if (world instanceof WorldWrapper) {
|
if (world instanceof WorldWrapper) {
|
||||||
world = ((WorldWrapper) world).getParent();
|
world = ((WorldWrapper) world).getParent();
|
||||||
}
|
}
|
||||||
|
else if (world instanceof EditSession) {
|
||||||
|
world = ((EditSession) world).getWorld();
|
||||||
|
}
|
||||||
return getWorldName(((ForgeWorld) world).getWorld());
|
return getWorldName(((ForgeWorld) world).getWorld());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getWorldName(net.minecraft.world.World w) {
|
public String getWorldName(net.minecraft.world.World w) {
|
||||||
|
Loading…
Reference in New Issue
Block a user