From 59b0aec9235fcb59c00a5b024f395d427708df7b Mon Sep 17 00:00:00 2001 From: casper Date: Sat, 5 Nov 2022 20:15:02 -0500 Subject: [PATCH] Update FlightManager.java --- TempFly/src/com/moneybags/tempfly/fly/FlightManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TempFly/src/com/moneybags/tempfly/fly/FlightManager.java b/TempFly/src/com/moneybags/tempfly/fly/FlightManager.java index 9fc7bdf..773be69 100644 --- a/TempFly/src/com/moneybags/tempfly/fly/FlightManager.java +++ b/TempFly/src/com/moneybags/tempfly/fly/FlightManager.java @@ -219,7 +219,7 @@ public synchronized void removeUser(UUID u, boolean reload) { * Called on plugin disable, saves users and cleans up. */ public void onDisable() { - for (FlightUser user : getUsers()) { + for (FlightUser user : new ArrayList<>(users.values())) { removeUser(user.getPlayer(), true); } }