diff options
| author | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-23 20:23:21 +0000 |
|---|---|---|
| committer | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-23 20:23:21 +0000 |
| commit | 25e5c35509eac87c1091361390debbf32e49f16f (patch) | |
| tree | cea2a4acf538e3196376031ccb29ded147f15e92 /src/main/java/world | |
| parent | 3a3edf9e104b8ead888970a49bd2ac69ea1508f2 (diff) | |
fix(game): wrong display of moles' list
Diffstat (limited to 'src/main/java/world')
| -rw-r--r-- | src/main/java/world/anhgelus/molehunt/Game.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/world/anhgelus/molehunt/Game.java b/src/main/java/world/anhgelus/molehunt/Game.java index 959b01b..6101525 100644 --- a/src/main/java/world/anhgelus/molehunt/Game.java +++ b/src/main/java/world/anhgelus/molehunt/Game.java @@ -18,7 +18,7 @@ import java.util.stream.Collectors; public class Game {
private Timer timer = new Timer();
- public final int defaultTime = Molehunt.CONFIG.getGameDuration();
+ public final int defaultTime = Molehunt.CONFIG.getGameDuration()*60;
private int remaining = defaultTime;
private final MinecraftServer server;
@@ -153,7 +153,7 @@ public class Game { return moles.stream()
.map(ServerPlayerEntity::getDisplayName)
.filter(Objects::nonNull)
- .map(Text::toString)
+ .map(Text::getString)
.collect(Collectors.joining(", "));
}
|
