diff options
Diffstat (limited to 'src/main/java')
| -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);
}
|
