Fix NPE.
This commit is contained in:
parent
219f2222ef
commit
1c1529c5c8
|
@ -1304,7 +1304,7 @@ public class NoCheatPlus extends JavaPlugin implements NoCheatPlusAPI {
|
|||
* Several seconds, repeating.
|
||||
*/
|
||||
protected void midTermCleanup() {
|
||||
if (blockChangeListener.isEnabled()) {
|
||||
if (blockChangeListener != null && blockChangeListener.isEnabled()) {
|
||||
blockChangeTracker.checkExpiration(TickTask.getTick());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue