aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/world
diff options
context:
space:
mode:
authoranhgelus <anhgelus.morhtuuzh@proton.me>2024-09-08 11:47:25 +0000
committeranhgelus <anhgelus.morhtuuzh@proton.me>2024-09-08 11:47:25 +0000
commitdde29efe5964b0dde967e9d0e92f96eae88e30d2 (patch)
tree5b11ffca2fa4f2a91156b3b65d3bb457ebb7d0f7 /src/main/java/world
parentfab1a1a2acb13336a1621a1a4735ffc70e1cccf1 (diff)
fix(game): gameWonByMoles does not filter players in creative
Diffstat (limited to 'src/main/java/world')
-rw-r--r--src/main/java/world/anhgelus/molehunt/game/Game.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/world/anhgelus/molehunt/game/Game.java b/src/main/java/world/anhgelus/molehunt/game/Game.java
index bac6c27..915e7d3 100644
--- a/src/main/java/world/anhgelus/molehunt/game/Game.java
+++ b/src/main/java/world/anhgelus/molehunt/game/Game.java
@@ -191,7 +191,7 @@ public class Game {
server.getPlayerManager()
.getPlayerList()
.stream()
- .filter(p -> !p.isSpectator())
+ .filter(p -> !p.isSpectator() && !p.isCreative())
.toList()
);
}