mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Direct use databaseHelper to delete shop in ShopLoader
Former-commit-id: d5035191971a7919bcf91454b096c3ea97269537 [formerly b78df525f6c0d9681ef081d65f88f589fb24f1a4] Former-commit-id: 091730ad4ade7a1c3e1018fd9cbc970e47c65b15
This commit is contained in:
1 parent
57960aa2b8
commit
56bf699ca6
1 file changed
+4
-1
@@ -74,7 +74,10 @@ public class ShopLoader {
|
||||
//Load to World
|
||||
if (!Util.canBeShop(shop.getLocation().getBlock())) {
|
||||
Util.debugLog("Target block can't be a shop, removing it from the database...");
|
||||
shop.delete();
|
||||
//shop.delete();
|
||||
plugin.getDatabaseHelper().removeShop(plugin.getDatabase(), shop.getLocation().getBlockX(), shop
|
||||
.getLocation().getBlockY(), shop.getLocation().getBlockZ(), shop.getLocation().getWorld()
|
||||
.getName());
|
||||
singleShopLoaded(singleShopLoadTimer);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user