File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/main/java/org/maxgamer/quickshop/shop Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2525 <artifactId >QuickShop</artifactId >
2626
2727 <properties >
28- <pluginver >5.0.0.11 </pluginver >
28+ <pluginver >5.0.0.12 </pluginver >
2929 <package >org.maxgamer.quickshop</package >
3030 <developer >Ghost-chu</developer >
3131 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
Original file line number Diff line number Diff line change @@ -170,7 +170,13 @@ public void loadShops(@Nullable String worldName) {
170170 }
171171 Bukkit .getScheduler ().runTaskLater (plugin , () -> {
172172 for (Shop shop : pendingLoading ) {
173- shop .onLoad ();
173+ try {
174+ shop .onLoad ();
175+ } catch (IllegalStateException exception ) {
176+ plugin .getShopManager ().loadShop (shop .getLocation ().getWorld ().getName (), shop );
177+ plugin .getSentryErrorReporter ().sendError (exception );
178+ shop .onLoad ();
179+ }
174180 shop .update ();
175181 }
176182 }, 1 );
You can’t perform that action at this time.
0 commit comments