Improve reading/writing Regions

Improve DynamicRegion constructors
This commit is contained in:
2026-03-25 09:00:41 +01:00
parent 6700c16c18
commit ef3d1b3c95
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;