From b8adeadfd1b8bdff03e38a28b4289e916eb91062 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Sun, 16 Jun 2019 18:55:34 +0800 Subject: [PATCH] Set isLoaded is false by default Former-commit-id: b44211804c2fb10da6879d49e6899075cdba43b4 [formerly bf8d8abde3af58795e66e084ff3a4eeca9820e22] Former-commit-id: 3bb9bd740bf2aa35d00371545bf8c6006dec3097 --- src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java b/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java index 1aac04968..b996e2ea5 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java @@ -41,7 +41,7 @@ public class ContainerShop implements Shop { private boolean unlimited; private ShopType shopType; private QuickShop plugin; - private boolean isLoaded; + private boolean isLoaded = false; /** * Returns a clone of this shop. References to the same display item, @@ -214,7 +214,6 @@ public class ContainerShop implements Shop { * Upates the shop into the database. */ public void update() { - ShopUpdateEvent shopUpdateEvent = new ShopUpdateEvent(this); if (shopUpdateEvent.isCancelled()) { Util.debugLog("The Shop update action was canceled by a plugin.");