Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 04:50:06 +01:00
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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren