Remove the shop after failed the check

Former-commit-id: 754a677646b10ef170d9feabf07be0fa687ff524 [formerly 2b4cc998bf24b2fba3d3580777650acb4c00206e]
Former-commit-id: 12ceb84cfcdf4544c99070d1ba562e0bf83b765a
This commit is contained in:
Ghost_chu committed 2019-06-17 20:38:55 +08:00
1 parent b4cb4ae6f1
commit 00ace45a9a
1 file changed
+1
@@ -79,6 +79,7 @@ public class ShopLoader {
if (!Util.canBeShop(shop.getLocation().getBlock())) {
Util.debugLog("Target block can't be a shop, removing it from the database...");
//shop.delete();
plugin.getShopManager().removeShop(shop);
plugin.getDatabaseHelper().removeShop(plugin.getDatabase(), shop.getLocation().getBlockX(), shop
.getLocation().getBlockY(), shop.getLocation().getBlockZ(), shop.getLocation().getWorld()
.getName());