From 527a8dd49be740702b0d97aa3f9ed0e5b02ebf01 Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 28 Jul 2014 20:52:17 -0700 Subject: [PATCH] Fix ForgeWorld's equals() being very broken. --- src/forge/java/com/sk89q/worldedit/forge/ForgeWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forge/java/com/sk89q/worldedit/forge/ForgeWorld.java b/src/forge/java/com/sk89q/worldedit/forge/ForgeWorld.java index fdab7bcf1..bc5752f45 100644 --- a/src/forge/java/com/sk89q/worldedit/forge/ForgeWorld.java +++ b/src/forge/java/com/sk89q/worldedit/forge/ForgeWorld.java @@ -359,7 +359,7 @@ public class ForgeWorld extends AbstractWorld { } else if ((o instanceof ForgeWorld)) { ForgeWorld other = ((ForgeWorld) o); World otherWorld = other.worldRef.get(); - World thisWorld = other.worldRef.get(); + World thisWorld = worldRef.get(); return otherWorld != null && thisWorld != null && otherWorld.equals(thisWorld); } else if (o instanceof com.sk89q.worldedit.world.World) { return ((com.sk89q.worldedit.world.World) o).getName().equals(getName());