From 25e5c35509eac87c1091361390debbf32e49f16f Mon Sep 17 00:00:00 2001 From: anhgelus Date: Fri, 23 Aug 2024 20:23:21 +0000 Subject: fix(game): wrong display of moles' list --- src/main/java/world/anhgelus/molehunt/Game.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 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(", ")); } -- cgit v1.2.3