Fix some reload issues.

And some unload issues.
This commit is contained in:
wizjany
2019-06-11 18:02:07 -04:00
parent fd1178a3d0
commit efb7650d6f
2 changed files with 7 additions and 6 deletions

View File

@ -315,7 +315,8 @@ public class BukkitWorld extends AbstractWorld {
} else if (other == null) {
return false;
} else if ((other instanceof BukkitWorld)) {
return ((BukkitWorld) other).getWorld().equals(getWorld());
World otherWorld = ((BukkitWorld) other).worldRef.get();
return otherWorld != null && otherWorld.equals(getWorld());
} else if (other instanceof com.sk89q.worldedit.world.World) {
return ((com.sk89q.worldedit.world.World) other).getName().equals(getName());
} else {