Skip to content

Commit 338a81f

Browse files
Fix ghost item issue
1 parent 0722ae3 commit 338a81f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/maxgamer/quickshop/watcher/DisplayWatcher.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ private void registerTask() {
4545
plugin.getLogger().severe("Shop.display-items-check-ticks is too low! It may cause HUGE lag! Pick a number > 3000");
4646
}
4747
for (Shop shop : plugin.getShopManager().getLoadedShops()) {
48+
//Shop may be deleted or unloaded when iterating
49+
if (shop.isDeleted() || !shop.isLoaded()) {
50+
continue;
51+
}
4852
shop.checkDisplay();
4953
}
5054
}, 1L, plugin.getDisplayItemCheckTicks());

0 commit comments

Comments
 (0)