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

Commit f8efdd6

Browse files
Let Shop#setSignText after Shop#onLoad
Former-commit-id: a41e80b
1 parent 332265f commit f8efdd6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ public void createShop(@NotNull Shop shop, @NotNull Info info) {
217217
plugin.getLogger().warning("Sign material " + bs.getType().name() + " not a WallSign, make sure you using correct sign material.");
218218
}
219219
bs.update(true);
220-
shop.setSignText();
221220
} else {
222221
if (!plugin.getConfig().getBoolean("shop.allow-shop-without-space-for-sign")) {
223222
MsgUtil.sendMessage(player, MsgUtil.getMessage("failed-to-put-sign", player));
@@ -228,6 +227,8 @@ public void createShop(@NotNull Shop shop, @NotNull Info info) {
228227
}
229228
//load the shop finally
230229
shop.onLoad();
230+
//first init
231+
shop.setSignText();
231232
//sync add to prevent compete issue
232233
addShop(shop.getLocation().getWorld().getName(), shop);
233234
//save to database

0 commit comments

Comments
 (0)