Fixed construction issue that would cause objects to become inaccessible (note this does not fix a similar issue related to rotation)

Simplified the region contract for construction
This commit is contained in:
Ceikry
2023-05-09 14:31:43 +00:00
committed by Ryan
parent 52633544ff
commit e7ccab2ad9
2 changed files with 4 additions and 7 deletions
@@ -454,15 +454,10 @@ public final class HouseManager {
using(target),
fillWith(defaultChunk)
.from(from)
.onPlanes(0)
.onCondition((destX, destY, plane) -> rooms[plane][destX][destY] == null),
fillWith((RegionChunk) null)
.from(from)
.onPlanes(1,2)
.onCondition((destX, destY, plane) -> rooms[plane][destX][destY] == null),
.onPlanes(0),
fillWith(defaultSkyChunk)
.from(from)
.onPlanes(3),
.onPlanes(1,2,3),
loadRooms
.from(from)
.onPlanes(0,1,2)
@@ -374,6 +374,8 @@ public class Region {
}
}
}
if (r.isBuild())
r.setLoaded(false);
r.activityPulse.stop();
return true;
}