null check

This commit is contained in:
bigguy345 committed 2025-04-27 08:01:29 +03:00
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;
}