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:
luisc committed 2022-02-27 23:11:52 -06:00
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;
}