forked from SteamWar/SteamWar
Improve reading/writing Regions
Improve DynamicRegion constructors
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user