Use RegionDataStore.deleteRegion instead of custom method in DynamicRegion

This commit is contained in:
2026-03-16 21:08:26 +01:00
parent cb5f82d7a3
commit 0d83f21a31
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")