Improve reading/writing Regions

Improve DynamicRegion constructors
This commit is contained in:
2026-09-07 11:42:22 +02:00
parent 1eeda69e0c
commit 6f859b217c
24 changed files with 449 additions and 145 deletions
@@ -306,7 +306,7 @@ public class DynamicRegionVisualizer implements SWPlayer.Component, Listener {
}
private void place() {
DynamicRegion dynamicRegion = DynamicRegionRepository.constructRegion(regionType, UUID.randomUUID(), sourceTile.getMinX(), sourceTile.getMinZ());
DynamicRegion dynamicRegion = DynamicRegionRepository.constructRegion(regionType, sourceTile);
if (dynamicRegion == null) {
// TODO: Give error to user
return;