Former-commit-id: 74a2329a04c79030dd2e066c092946b6054b869e [formerly c8ca9114e2d13aefad093c4146ddc0e9d2afdbed]
Former-commit-id: a1a80b385f62a03f9a62aee5e1cfc1afed40c95c
This commit is contained in:
Ghost_chu committed 2019-05-25 22:06:01 +08:00
1 parent ba4a270d20
commit c7d2e91fc0
1 file changed
+1 -1
@@ -246,7 +246,7 @@ public class Util {
}
private static final boolean equalsBlockStateLocation(Location b1, Location b2) {
return b1.getBlockX() == b2.getBlockX() && b1.getBlockY() == b2.getBlockY() && b1.getBlockZ() == b2.getBlockZ();
return (b1.getBlockX() == b2.getBlockX()) && (b1.getBlockY() == b2.getBlockY()) && (b1.getBlockZ() == b2.getBlockZ()) && (b1.getWorld().getName().equals(b2.getWorld().getName()));
}
public static boolean location3DEqual(Location loc1, Location loc2){