aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLéo Kosman <leo.kosman@proton.me>2024-08-24 23:53:14 +0200
committerLéo Kosman <leo.kosman@proton.me>2024-08-24 23:53:14 +0200
commit57cc65835c093d60bcbf12a6a517ede850a1421d (patch)
tree56c3cf0ab2482f70f896ceccd520538501412713
parent4a70f3f81c7e593fd5acbf064d89b15ef024c604 (diff)
fix: minecraft takes milliseconds and not seconds
-rw-r--r--src/main/java/world/anhgelus/molehunt/game/Game.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/world/anhgelus/molehunt/game/Game.java b/src/main/java/world/anhgelus/molehunt/game/Game.java
index 8670f7e..8e2406e 100644
--- a/src/main/java/world/anhgelus/molehunt/game/Game.java
+++ b/src/main/java/world/anhgelus/molehunt/game/Game.java
@@ -69,7 +69,7 @@ public class Game {
worldBorder.interpolateSize(
Molehunt.CONFIG.getInitialWorldSize(),
Molehunt.CONFIG.getFinalWorldSize(),
- (long) (Molehunt.CONFIG.getGameDuration() - Molehunt.CONFIG.getBorderShrinkingStartingTimeOffset()) * 60);
+ (long) (Molehunt.CONFIG.getGameDuration() - Molehunt.CONFIG.getBorderShrinkingStartingTimeOffset()) * 60 * 1000);
}
}, (long) Molehunt.CONFIG.getBorderShrinkingStartingTimeOffset() * 60 * 1000);
}