Skip to content

Commit

Permalink
#224 Checking isDisableDisplay when spawning item in auto-despawn
Browse files Browse the repository at this point in the history
  • Loading branch information
sandtechnology committed Aug 14, 2022
1 parent 238102f commit 5e6345c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ReloadResult reloadModule() {
public void run() {
for (Shop shop : plugin.getShopManager().getLoadedShops()) {
//Shop may be deleted or unloaded when iterating
if (shop.isDeleted() || !shop.isLoaded()) {
if (shop.isDeleted() || !shop.isLoaded() || shop.isDisableDisplay()) {
continue;
}
Location location = shop.getLocation();
Expand Down

0 comments on commit 5e6345c

Please sign in to comment.