mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
Fix CraftBlock.equals as they are not singletons anymore
This commit is contained in:
parent
d39c363e5c
commit
255778b388
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue