mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
oops
This commit is contained in:
1 parent
e3e99f056a
commit
c405f409f3
1 file changed
+2
-2
@@ -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<IAction> 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) {
|
||||
|
||||
Reference in new issue
Block a user