mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 05:42:23 +00:00
Removed Integer.MAX_VALUE (infinite max duration is already -1)
This commit is contained in:
1 parent
ae4b4c8702
commit
5dd2dad700
3 files changed
+5
-4
No files matched your search
@@ -38,11 +38,13 @@ public class Action implements IAction {
|
||||
}
|
||||
|
||||
public Action(ScriptedActionManager manager, String name, int startAfterTicks, Consumer<IAction> task) {
|
||||
this(manager, name, Integer.MAX_VALUE, startAfterTicks, task);
|
||||
this(manager, name, task);
|
||||
this.startAfterTicks = startAfterTicks;
|
||||
}
|
||||
|
||||
public Action(ScriptedActionManager manager, String name, Consumer<IAction> task) {
|
||||
this(manager, name, Integer.MAX_VALUE, 0, task);
|
||||
this(manager, name);
|
||||
this.task = task;
|
||||
}
|
||||
|
||||
public Action(ScriptedActionManager manager, int startAfterTicks, Consumer<IAction> task) {
|
||||
|
||||
Reference in new issue
Block a user