Skip to content

Commit

Permalink
fix extreme case
Browse files Browse the repository at this point in the history
  • Loading branch information
aria1th committed Dec 27, 2023
1 parent 62e9fd7 commit 048802f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static void tick() {
if (!usedSlots.containsKey(i)) {
continue;
}
if (slotCounts.get(i) <= 0) {
if (slotCounts.getOrDefault(i,0) <= 0) {
usedSlots.remove(i);
slotCounts.remove(i);
}
Expand Down

0 comments on commit 048802f

Please sign in to comment.