Use RegionDataStore.deleteRegion instead of custom method in DynamicRegion

This commit is contained in:
2026-09-07 11:42:22 +02:00
parent a73ccc409f
commit 6a5b7927e1
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")