Don't compare null BlockStates.

This commit is contained in:
wizjany
2019-05-06 19:22:46 -04:00
parent db98cdad0b
commit 31d4daf474
2 changed files with 4 additions and 1 deletions

View File

@ -145,6 +145,9 @@ public class BlockState implements BlockStateHolder<BlockState> {
@Override
public boolean equalsFuzzy(BlockStateHolder<?> o) {
if (null == o) {
return false;
}
if (this == o) {
// Added a reference equality check for speediness
return true;