mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-27 14:13:11 +02:00
isRedundant: Do check for null before calling equals.
(So far intended use always has an IBlockCacheInstance set.)
This commit is contained in:
parent
e129b58a6f
commit
6f51fc531b
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user