Check shop is loaded after to check display

Former-commit-id: c09e1c96db1a6c424cd9ce4a60ed46558101d103 [formerly af3ababfc54d3d4b86e2528a3dae421b18e513fe]
Former-commit-id: d95c0eedb5af9b30d732c1025e895e23ba601c00
This commit is contained in:
Ghost_chu committed 2019-06-01 11:42:25 +08:00
1 parent 830a902ee7
commit c7ebbddcbd
2 files changed
+3 -2

No files matched your search

@@ -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;
}