From 1de78548bbf8ae32ec93b61d1ca764de7b4c3c47 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 10 Mar 2022 12:05:30 +0100 Subject: [PATCH] Fix logic error --- .../src/de/steamwar/fightsystem/utils/FightStatistics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java b/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java index 1948970..73bbe7e 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightStatistics.java @@ -138,7 +138,7 @@ public class FightStatistics { } replayLock = false; - if (Bukkit.getOnlinePlayers().isEmpty()) { + if (!Bukkit.getOnlinePlayers().isEmpty()) { Player p = Bukkit.getOnlinePlayers().iterator().next(); new FightEndsPacket((byte) win, blueSchem == null ? 0 : blueSchem, redSchem == null ? 0 : redSchem, Fight.getBlueTeam().getPlayers().stream().map(FightPlayer::getPlayer).map(SteamwarUser::get).map(SteamwarUser::getId).collect(Collectors.toList()), Fight.getRedTeam().getPlayers().stream().map(FightPlayer::getPlayer).map(SteamwarUser::get).map(SteamwarUser::getId).collect(Collectors.toList())).send(p); }