mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
null check
This commit is contained in:
1 parent
3e63a9ec94
commit
1e249f317d
1 file changed
+1
-1
@@ -291,7 +291,7 @@ public class ScriptedActionManager implements IActionManager {
|
||||
if (isDone()) return;
|
||||
if (ticksExisted % updateEveryXTick == 0) {
|
||||
checkCount++;
|
||||
if ((maxChecks >= 0 && checkCount > maxChecks) || terminate.get()) {
|
||||
if ((maxChecks >= 0 && checkCount > maxChecks) || terminate != null && terminate.get()) {
|
||||
markDone();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user