Skip to content

Commit

Permalink
πŸ“Œ[main/App] Team leave bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepymalc committed Aug 8, 2021
1 parent 3dfc352 commit 571ac5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/linyuanlin/minecraft/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 571ac5c

Please sign in to comment.