Handle null case in equality checking BlockVector3+DFSNode

This commit is contained in:
Hazel Trinity
2020-08-15 09:21:33 -07:00
parent b7e9547cd5
commit da9c4ad543
6 changed files with 14 additions and 6 deletions

View File

@ -775,6 +775,10 @@ public abstract class BlockVector3 {
}
public final boolean equals(BlockVector3 other) {
if (other == null) {
return false;
}
return other.getX() == this.getX() && other.getY() == this.getY() && other.getZ() == this.getZ();
}