mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-29 12:37:53 +01:00
Fix cast exception with foge
This commit is contained in:
parent
543af87238
commit
a455f22a3e
@ -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());
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user