diff options
| author | Léo Kosman <leo.kosman@proton.me> | 2024-08-22 23:13:25 +0200 |
|---|---|---|
| committer | Léo Kosman <leo.kosman@proton.me> | 2024-08-22 23:13:25 +0200 |
| commit | b1b716f8265b730dec82eafea33bfc1cfc33b0bd (patch) | |
| tree | ab8945d295222abd52f91ff42a72349ba0fd2300 | |
| parent | 4e286cb30e0b65c3f09763ad86e1b0d9dfd84d80 (diff) | |
fix: moles command suggestion
| -rw-r--r-- | src/main/java/world/anhgelus/molehunt/Molehunt.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/world/anhgelus/molehunt/Molehunt.java b/src/main/java/world/anhgelus/molehunt/Molehunt.java index 49e775d..5273b21 100644 --- a/src/main/java/world/anhgelus/molehunt/Molehunt.java +++ b/src/main/java/world/anhgelus/molehunt/Molehunt.java @@ -64,7 +64,7 @@ public class Molehunt implements ModInitializer { return Command.SINGLE_SUCCESS; }) )); - command.then(literal("moles").requires(source -> (game != null) && game.hasStarted() && game.isAMole(source.getPlayer())).executes(context -> { + command.then(literal("moles").requires(source -> (game != null) && game.isAMole(source.getPlayer())).executes(context -> { context.getSource().sendFeedback(() -> Text.literal("List of moles: " + game.getMolesAsString()),false); return Command.SINGLE_SUCCESS; })); |
