From c230257676fbf0cc5eb83fd2c4a98e140281757f Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 30 Jul 2017 14:09:16 +0200 Subject: [PATCH] Fix ConcurrentModificationException on disable --- src/main/java/de/epiceric/shopchest/ShopChest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/ShopChest.java b/src/main/java/de/epiceric/shopchest/ShopChest.java index 2a1b9fa..d17d8cc 100644 --- a/src/main/java/de/epiceric/shopchest/ShopChest.java +++ b/src/main/java/de/epiceric/shopchest/ShopChest.java @@ -205,7 +205,8 @@ public class ShopChest extends JavaPlugin { if (database != null) { for (Shop shop : shopUtils.getShops()) { - shopUtils.removeShop(shop, false); + shop.removeHologram(); + shop.removeItem(); debug("Removed shop (#" + shop.getID() + ")"); }