Skip to content

Commit 054cd52

Browse files
committed
add to manager before loading
1 parent c98791d commit 054cd52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,12 @@ public void createShop(@NotNull Shop shop, @NotNull Info info) {
303303
}
304304
}
305305
}
306+
// sync add to prevent compete issue
307+
addShop(shop.getLocation().getWorld().getName(), shop);
306308
// load the shop finally
307309
shop.onLoad();
308310
// first init
309311
shop.setSignText();
310-
// sync add to prevent compete issue
311-
addShop(shop.getLocation().getWorld().getName(), shop);
312312
// save to database
313313
plugin.getDatabaseHelper().createShop(shop, null, e ->
314314
Util.mainThreadRun(() -> {

0 commit comments

Comments
 (0)