From 6d65cb246c498aa7aefd860a00136cd4afd96d48 Mon Sep 17 00:00:00 2001
From: Zak Shearman <34372536+ZakShearman@users.noreply.github.com>
Date: Sat, 9 Mar 2024 17:23:31 +0000
Subject: [PATCH] fix: start time negative

---
 .../java/dev/emortal/minestom/parkourtag/ParkourTagGame.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/dev/emortal/minestom/parkourtag/ParkourTagGame.java b/src/main/java/dev/emortal/minestom/parkourtag/ParkourTagGame.java
index 5946c50..fa6ed18 100644
--- a/src/main/java/dev/emortal/minestom/parkourtag/ParkourTagGame.java
+++ b/src/main/java/dev/emortal/minestom/parkourtag/ParkourTagGame.java
@@ -297,7 +297,7 @@ public TaskSchedule get() {
     }
 
     private void beginTimer() {
-        int playTime = 300 / (12 - getPlayers().size());
+        int playTime = 300 / Math.max(12 - getPlayers().size(), 12);
         int glowing = 15 + ((getPlayers().size() * 15) / 8);
         int doubleJump = glowing / 2;