Set isLoaded is false by default

Former-commit-id: b44211804c2fb10da6879d49e6899075cdba43b4 [formerly bf8d8abde3af58795e66e084ff3a4eeca9820e22]
Former-commit-id: 3bb9bd740bf2aa35d00371545bf8c6006dec3097
This commit is contained in:
Ghost_chu committed 2019-06-16 18:55:34 +08:00
1 parent 34ea51873d
commit b8adeadfd1
1 file changed
+1 -2
@@ -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.");