Fix CraftBlock.equals as they are not singletons anymore
Dieser Commit ist enthalten in:
Ursprung
d39c363e5c
Commit
255778b388
@ -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) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren