Skip to content

Commit

Permalink
override timer in onUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDrOfDoctoring committed Dec 7, 2023
1 parent 9f45e85 commit 451a423
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,7 @@ public boolean updateActions() {
assert action != null;
if (newtimer == 0) {
deactivateAction(action, true);
if(!cooldownTimers.containsKey(entry.getKey())) {
cooldownTimers.put(entry.getKey(), expectedCooldownTimes.getInt(entry.getKey()));
}
cooldownTimers.put(entry.getKey(), expectedCooldownTimes.getInt(entry.getKey()));
it.remove();//Do not access entry after this

dirty = true;
Expand Down

0 comments on commit 451a423

Please sign in to comment.