This commit is contained in:
Brianna O'Keefe 2018-12-02 16:15:14 -05:00
parent 834d5dffa5
commit 314747ccc1

View File

@ -20,7 +20,7 @@ public final class KitManager {
}
public void removeLocationsFromKit(Kit kit) {
for (Map.Entry<Location, KitBlockData> entry : kitsAtLocations.entrySet()) {
for (Map.Entry<Location, KitBlockData> entry : new ArrayList<>(kitsAtLocations.entrySet())) {
if (entry.getValue().getKit() == kit) {
entry.getValue().reset();
kitsAtLocations.remove(entry.getKey());