isRedundant: Do check for null before calling equals.

(So far intended use always has an IBlockCacheInstance set.)
This commit is contained in:
asofold 2017-02-03 22:58:15 +01:00
parent e129b58a6f
commit 6f51fc531b

View File

@ -264,7 +264,7 @@ public class BlockChangeTracker {
final IBlockCacheNode previousState) {
return tick == this.tick && direction == this.direction && (
previousState == null && this.previousState == null
|| previousState.equals(this.previousState)
|| previousState != null && previousState.equals(this.previousState)
);
}