Fix cast exception with foge

This commit is contained in:
Jesse Boyd 2016-10-29 21:46:36 +11:00
parent 543af87238
commit a455f22a3e
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
4 changed files with 8 additions and 8 deletions

View File

@ -104,10 +104,10 @@ public class FaweForge implements IFawe {
@Override
public String getWorldName(World world) {
if (world instanceof WorldWrapper) {
world = ((WorldWrapper) world).getParent();
return getWorldName(((WorldWrapper) world).getParent());
}
else if (world instanceof EditSession) {
world = ((EditSession) world).getWorld();
return getWorldName(((EditSession) world).getWorld());
}
return getWorldName(((ForgeWorld) world).getWorld());

View File

@ -101,10 +101,10 @@ public class FaweForge implements IFawe {
@Override
public String getWorldName(World world) {
if (world instanceof WorldWrapper) {
world = ((WorldWrapper) world).getParent();
return getWorldName(((WorldWrapper) world).getParent());
}
else if (world instanceof EditSession) {
world = ((EditSession) world).getWorld();
return getWorldName(((EditSession) world).getWorld());
}
return getWorldName(((ForgeWorld) world).getWorld());
}

View File

@ -104,10 +104,10 @@ public class FaweForge implements IFawe {
@Override
public String getWorldName(World world) {
if (world instanceof WorldWrapper) {
world = ((WorldWrapper) world).getParent();
return getWorldName(((WorldWrapper) world).getParent());
}
else if (world instanceof EditSession) {
world = ((EditSession) world).getWorld();
return getWorldName(((EditSession) world).getWorld());
}
return getWorldName(((ForgeWorld) world).getWorld());
}

View File

@ -104,10 +104,10 @@ public class FaweForge implements IFawe {
@Override
public String getWorldName(World world) {
if (world instanceof WorldWrapper) {
world = ((WorldWrapper) world).getParent();
return getWorldName(((WorldWrapper) world).getParent());
}
else if (world instanceof EditSession) {
world = ((EditSession) world).getWorld();
return getWorldName(((EditSession) world).getWorld());
}
return getWorldName(((ForgeWorld) world).getWorld());
}