3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00

Fix CraftBlock.equals as they are not singletons anymore

Dieser Commit ist enthalten in:
Erik Broes 2011-10-07 11:48:14 +02:00
Ursprung d39c363e5c
Commit 255778b388

Datei anzeigen

@ -267,7 +267,11 @@ public class CraftBlock implements Block {
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
return this == o; if (o == this) return true;
if (!(o instanceof CraftBlock)) return false;
CraftBlock other = (CraftBlock) o;
return this.x == other.x && this.y == other.y && this.z == other.z && this.getWorld().equals(other.getWorld());
} }
public boolean isBlockFacePowered(BlockFace face) { public boolean isBlockFacePowered(BlockFace face) {