From c7ebbddcbd26bd0e89dfd5455fc018b449021456 Mon Sep 17 00:00:00 2001
From: Ghost_chu <2908803755@qq.com>
Date: Sat, 1 Jun 2019 11:42:25 +0800
Subject: [PATCH] Check shop is loaded after to check display
Former-commit-id: c09e1c96db1a6c424cd9ce4a60ed46558101d103 [formerly af3ababfc54d3d4b86e2528a3dae421b18e513fe]
Former-commit-id: d95c0eedb5af9b30d732c1025e895e23ba601c00
---
pom.xml | 2 +-
src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 573dcae8a..29264a733 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
org.maxgamer
QuickShop
- Reremake 1.4.4
+ Reremake 1.4.4.1
diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java b/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java
index f8940d3d3..47bbd79fd 100644
--- a/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java
+++ b/src/main/java/org/maxgamer/quickshop/Shop/ContainerShop.java
@@ -719,7 +719,8 @@ public class ContainerShop implements Shop {
public boolean checkDisplayMoved() {
// don't check if the plugin doesn't know about the object
-
+ if (!Util.isLoaded(getLocation()))
+ return false;
if (this.getDisplayItem() == null) {
return false;
}