From c405f409f3fe38c2633c921d000bc19ce999012c Mon Sep 17 00:00:00 2001 From: bigguy345 Date: Mon, 28 Apr 2025 07:53:21 +0300 Subject: [PATCH] oops --- src/main/java/noppes/npcs/scripted/ScriptedActionManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/noppes/npcs/scripted/ScriptedActionManager.java b/src/main/java/noppes/npcs/scripted/ScriptedActionManager.java index 49b374f4d..fd13b4e88 100644 --- a/src/main/java/noppes/npcs/scripted/ScriptedActionManager.java +++ b/src/main/java/noppes/npcs/scripted/ScriptedActionManager.java @@ -193,7 +193,7 @@ public class ScriptedActionManager implements IActionManager { protected final String name; protected int startAfterTicks; protected int count = 0; - protected int duration = -1; + protected int duration; protected int maxDuration = -1; protected int updateEveryXTick = 5; protected final Consumer task; @@ -237,7 +237,7 @@ public class ScriptedActionManager implements IActionManager { return; } - if (duration != -1 && duration >= maxDuration) + if (maxDuration != -1 && duration >= maxDuration) markDone(); // only run on our update tick if (ticksExisted % updateEveryXTick == 0) {