mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 17:52:28 +01:00
Add missing CraftBlock hashCode()
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
e771a25163
commit
b8a509d091
1 changed files with 5 additions and 0 deletions
|
@ -274,6 +274,11 @@ public class CraftBlock implements Block {
|
|||
return this.x == other.x && this.y == other.y && this.z == other.z && this.getWorld().equals(other.getWorld());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.y << 24 ^ this.x ^ this.z ^ this.getWorld().hashCode();
|
||||
}
|
||||
|
||||
public boolean isBlockFacePowered(BlockFace face) {
|
||||
return chunk.getHandle().world.isBlockFacePowered(x, y, z, blockFaceToNotch(face));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue