mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
When setMaxTicks() is called and the remaining ticks in a timer are greater than that value, the remaining ticks are updated to the new max tick value.
This commit is contained in:
1 parent
403738262c
commit
d2d3cef681
1 file changed
+2
@@ -77,6 +77,8 @@ public class DataTimers implements ITimers {
|
||||
DataTimers.Timer timer = (DataTimers.Timer)this.timers.get(Integer.valueOf(id));
|
||||
if(maxTicks < 0)
|
||||
maxTicks = 0;
|
||||
if(timer.ticks > maxTicks)
|
||||
timer.ticks = maxTicks;
|
||||
|
||||
timer.timerTicks = maxTicks;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user