Skip to content
This repository was archived by the owner on Dec 5, 2021. It is now read-only.

Commit fd14be1

Browse files
committed
Exp: load the shop that recovered in loaded region
1 parent c5965f1 commit fd14be1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/maxgamer/quickshop/shop/ShopLoader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,12 @@ public synchronized void recoverFromFile(@NotNull String fileContent) {
313313
plugin.getDatabaseHelper().createShop(shop, null, null);
314314
plugin.getShopManager().loadShop(data.getWorld().getName(), shop);
315315
shop.update();
316+
if (Util.isLoaded(shop.getLocation()) && !shop.isLoaded()) {
317+
shop.onLoad();
318+
}
316319
}
317320
plugin.getLogger().info("Finished!");
318321
});
319-
320322
}
321323

322324
// @NotNull

0 commit comments

Comments
 (0)