Archiviert
13
0

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
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) {