From c042f7829ac6b1d207171e57bca5659f17f3cc3c Mon Sep 17 00:00:00 2001 From: wizjany Date: Fri, 15 Mar 2013 22:25:57 -0400 Subject: [PATCH] Fixed equalsFuzzy returning true when it shouldn't --- src/main/java/com/sk89q/worldedit/blocks/BaseBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/blocks/BaseBlock.java b/src/main/java/com/sk89q/worldedit/blocks/BaseBlock.java index 121048550..7cd2eecc6 100644 --- a/src/main/java/com/sk89q/worldedit/blocks/BaseBlock.java +++ b/src/main/java/com/sk89q/worldedit/blocks/BaseBlock.java @@ -150,7 +150,7 @@ public class BaseBlock extends Block { * @return true if equal */ public boolean equalsFuzzy(BaseBlock o) { - return (getType() == o.getType() && getData() == o.getData()) || getData() == -1 || o.getData() == -1; + return (getType() == o.getType()) && (getData() == o.getData() || getData() == -1 || o.getData() == -1); } /**