mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fix ForgeWorld's equals() being very broken.
This commit is contained in:
parent
4d9b3681d7
commit
527a8dd49b
@ -359,7 +359,7 @@ public class ForgeWorld extends AbstractWorld {
|
|||||||
} else if ((o instanceof ForgeWorld)) {
|
} else if ((o instanceof ForgeWorld)) {
|
||||||
ForgeWorld other = ((ForgeWorld) o);
|
ForgeWorld other = ((ForgeWorld) o);
|
||||||
World otherWorld = other.worldRef.get();
|
World otherWorld = other.worldRef.get();
|
||||||
World thisWorld = other.worldRef.get();
|
World thisWorld = worldRef.get();
|
||||||
return otherWorld != null && thisWorld != null && otherWorld.equals(thisWorld);
|
return otherWorld != null && thisWorld != null && otherWorld.equals(thisWorld);
|
||||||
} else if (o instanceof com.sk89q.worldedit.world.World) {
|
} else if (o instanceof com.sk89q.worldedit.world.World) {
|
||||||
return ((com.sk89q.worldedit.world.World) o).getName().equals(getName());
|
return ((com.sk89q.worldedit.world.World) o).getName().equals(getName());
|
||||||
|
Loading…
Reference in New Issue
Block a user