From a78ecfefd7dc7fa38aea8109e0f69fcc52d84ba8 Mon Sep 17 00:00:00 2001 From: ccetl <109693935+ccetl@users.noreply.github.com> Date: Wed, 15 Jan 2025 18:14:52 +0100 Subject: [PATCH] fix(FakePlayer): wrong method --- .../command/commands/ingame/fakeplayer/CommandFakePlayer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/net/ccbluex/liquidbounce/features/command/commands/ingame/fakeplayer/CommandFakePlayer.kt b/src/main/kotlin/net/ccbluex/liquidbounce/features/command/commands/ingame/fakeplayer/CommandFakePlayer.kt index 6990bd247a2..a142b993fc2 100644 --- a/src/main/kotlin/net/ccbluex/liquidbounce/features/command/commands/ingame/fakeplayer/CommandFakePlayer.kt +++ b/src/main/kotlin/net/ccbluex/liquidbounce/features/command/commands/ingame/fakeplayer/CommandFakePlayer.kt @@ -326,7 +326,7 @@ object CommandFakePlayer : CommandFactory, EventListener { return@handler } - val contains = fakePlayers.none { player -> + val contains = fakePlayers.any { player -> player.id == event.entity.id }