Don't attempt to check unloaded world refs.

This commit is contained in:
wizjany 2019-06-08 11:25:36 -04:00
parent 8022d8e911
commit 3fd661c513

View File

@ -310,7 +310,9 @@ public class BukkitWorld extends AbstractWorld {
@Override
public boolean equals(Object other) {
if (other == null) {
if (worldRef.get() == null) {
return false;
} else if (other == null) {
return false;
} else if ((other instanceof BukkitWorld)) {
return ((BukkitWorld) other).getWorld().equals(getWorld());