Skip to content

Commit

Permalink
PAPI Placeholder Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MetallicGoat committed Oct 11, 2022
1 parent 90c118f commit 096e20f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ private static BukkitTask startUpdatingTime() {

// Format time for placeholder
public static String[] timeLeft(Arena arena) {

final int timeoutTicks = Math.toIntExact(timeToNextUpdate.get(arena));
final int timeoutTicks = timeToNextUpdate.getOrDefault(arena, 0L).intValue();
final int timeoutSeconds = (timeoutTicks / 20);

final int minutes = (timeoutSeconds / 60) % 60;
Expand Down

0 comments on commit 096e20f

Please sign in to comment.