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

Commit

Permalink
Exp: load the shop that recovered in loaded region
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Oct 31, 2021
1 parent c5965f1 commit fd14be1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/maxgamer/quickshop/shop/ShopLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,12 @@ public synchronized void recoverFromFile(@NotNull String fileContent) {
plugin.getDatabaseHelper().createShop(shop, null, null);
plugin.getShopManager().loadShop(data.getWorld().getName(), shop);
shop.update();
if (Util.isLoaded(shop.getLocation()) && !shop.isLoaded()) {
shop.onLoad();
}
}
plugin.getLogger().info("Finished!");
});

}

// @NotNull
Expand Down

0 comments on commit fd14be1

Please sign in to comment.