mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-22 10:22:29 +00:00
Fix ConcurrentModificationException on disable
This commit is contained in:
parent
787426218b
commit
c230257676
@ -205,7 +205,8 @@ public class ShopChest extends JavaPlugin {
|
|||||||
|
|
||||||
if (database != null) {
|
if (database != null) {
|
||||||
for (Shop shop : shopUtils.getShops()) {
|
for (Shop shop : shopUtils.getShops()) {
|
||||||
shopUtils.removeShop(shop, false);
|
shop.removeHologram();
|
||||||
|
shop.removeItem();
|
||||||
debug("Removed shop (#" + shop.getID() + ")");
|
debug("Removed shop (#" + shop.getID() + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user