From 571ac5c9ac7823bf7966d45a9129a9639593e2a4 Mon Sep 17 00:00:00 2001 From: sleepymalc Date: Mon, 9 Aug 2021 03:23:30 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=8C[main/App]=20Team=20leave=20bug=20f?= =?UTF-8?q?ix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/linyuanlin/minecraft/App.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/linyuanlin/minecraft/App.java b/src/main/java/com/linyuanlin/minecraft/App.java index bd9f3a5..23a6029 100644 --- a/src/main/java/com/linyuanlin/minecraft/App.java +++ b/src/main/java/com/linyuanlin/minecraft/App.java @@ -219,7 +219,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String cmdlable, Str if (team.get().size() == 1) { team = Optional.empty(); } else { - team.get().playerList.remove((Object) p1); + team.get().playerList.remove((Object) allPlayers.get(p1.getUniqueId())); if (team.get().leader == p1) { for (PlayerData pd : allPlayers.get(p1.getUniqueId()).team.get().playerList) { if (team.get().leader != p1) {