From 3a3edf9e104b8ead888970a49bd2ac69ea1508f2 Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 20:18:47 +0000 Subject: fix(game): blinking titles --- src/main/java/world/anhgelus/molehunt/Game.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/main') diff --git a/src/main/java/world/anhgelus/molehunt/Game.java b/src/main/java/world/anhgelus/molehunt/Game.java index 2f94a8b..959b01b 100644 --- a/src/main/java/world/anhgelus/molehunt/Game.java +++ b/src/main/java/world/anhgelus/molehunt/Game.java @@ -96,19 +96,15 @@ public class Game { @Override public void run() { remaining--; - playerManager.sendToAll(timing); - playerManager.getPlayerList().forEach(player -> { if (Molehunt.timerVisibility.getOrDefault(player, true)) { player.networkHandler.sendPacket(new OverlayMessageS2CPacket(Text.of(getShortRemainingText()))); } }); - - if (remaining == 0) { - end(); - } + playerManager.sendToAll(timing); + if (remaining == 0) end(); } - }, 4*1000, 1000); + }, 5*1000, 1000); } }, 4*1000); } -- cgit v1.2.3