diff options
| author | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-23 20:18:47 +0000 |
|---|---|---|
| committer | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-23 20:18:47 +0000 |
| commit | 3a3edf9e104b8ead888970a49bd2ac69ea1508f2 (patch) | |
| tree | 13f2578bea2199ad45fc06c8c2a0add4d352300f /src | |
| parent | 4256a3a18897f232b169ad2ebb48feea1a51ba1d (diff) | |
fix(game): blinking titles
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/world/anhgelus/molehunt/Game.java | 10 |
1 files changed, 3 insertions, 7 deletions
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);
}
|
