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:
@@ -454,15 +454,10 @@ public final class HouseManager {
|
|||||||
using(target),
|
using(target),
|
||||||
fillWith(defaultChunk)
|
fillWith(defaultChunk)
|
||||||
.from(from)
|
.from(from)
|
||||||
.onPlanes(0)
|
.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),
|
|
||||||
fillWith(defaultSkyChunk)
|
fillWith(defaultSkyChunk)
|
||||||
.from(from)
|
.from(from)
|
||||||
.onPlanes(3),
|
.onPlanes(1,2,3),
|
||||||
loadRooms
|
loadRooms
|
||||||
.from(from)
|
.from(from)
|
||||||
.onPlanes(0,1,2)
|
.onPlanes(0,1,2)
|
||||||
|
|||||||
@@ -374,6 +374,8 @@ public class Region {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (r.isBuild())
|
||||||
|
r.setLoaded(false);
|
||||||
r.activityPulse.stop();
|
r.activityPulse.stop();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user