Use RegionDataStore.deleteRegion instead of custom method in DynamicRegion

This commit is contained in:
2026-08-13 17:40:57 +02:00
parent da719b1a76
commit 603b6f4787
2 changed files with 3 additions and 2 deletions
@@ -65,7 +65,7 @@ public class DynamicRegionCommand extends SWCommand {
public void deleteRegion(Player player) {
Region region = DynamicRegionSystem.INSTANCE.get(player.getLocation());
if (!region.getType().isDeletable()) return;
((DynamicRegion) region).delete();
region.deleteRegion();
}
@Mapper("regionType")