diff options
| author | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-09-08 11:47:25 +0000 |
|---|---|---|
| committer | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-09-08 11:47:25 +0000 |
| commit | dde29efe5964b0dde967e9d0e92f96eae88e30d2 (patch) | |
| tree | 5b11ffca2fa4f2a91156b3b65d3bb457ebb7d0f7 /src/main | |
| parent | fab1a1a2acb13336a1621a1a4735ffc70e1cccf1 (diff) | |
fix(game): gameWonByMoles does not filter players in creative
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/java/world/anhgelus/molehunt/game/Game.java | 2 |
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()
);
}
|
