diff --git a/src/main/java/org/shanerx/tradeshoparm/listeners/ARMRestoreRegionEventListener.java b/src/main/java/org/shanerx/tradeshoparm/listeners/ARMRestoreRegionEventListener.java index 7c4c484..3e78d88 100644 --- a/src/main/java/org/shanerx/tradeshoparm/listeners/ARMRestoreRegionEventListener.java +++ b/src/main/java/org/shanerx/tradeshoparm/listeners/ARMRestoreRegionEventListener.java @@ -57,9 +57,11 @@ public void onRegionRestore(RestoreRegionEvent event) { World world = region.getRegionworld(); for (Vector point : region.getRegion().getPoints()) { - Shop shop = dataStorage.loadShopFromSign(new ShopLocation(world, point.getBlockX(), point.getBlockY(), point.getBlockZ())); + ShopLocation sl = new ShopLocation(world, point.getBlockX(), point.getBlockY(), point.getBlockZ()); + Shop shop = dataStorage.loadShopFromSign(sl); if (shop != null) shop.remove(); + dataStorage.removeChestLinkage(sl); } } }