mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-06 15:56:27 +00:00
Allow y locking for structures
This commit is contained in:
@@ -114,7 +114,9 @@ public class PlannedStructure {
|
||||
int xx = i.getPosition().getX() + sx;
|
||||
int zz = i.getPosition().getZ() + sz;
|
||||
int offset = i.getPosition().getY() - startHeight;
|
||||
int height = placer.getHighest(xx, zz, getData()) + offset + (v.getH() / 2);
|
||||
int height = i.getStructure().getStructure().getLockY() != -1
|
||||
? i.getStructure().getStructure().getLockY()
|
||||
: placer.getHighest(xx, zz, getData()) + offset + (v.getH() / 2);
|
||||
|
||||
if (options.getMode().equals(ObjectPlaceMode.PAINT) || options.isVacuum()) {
|
||||
height = -1;
|
||||
@@ -124,7 +126,6 @@ public class PlannedStructure {
|
||||
int h = vo.place(xx, height, zz, placer, options, rng, (b)
|
||||
-> e.set(b.getX(), b.getY(), b.getZ(), v.getLoadKey() + "@" + id), null, getData());
|
||||
|
||||
|
||||
for (IrisJigsawPieceConnector j : i.getAvailableConnectors()) {
|
||||
if (j.getSpawnEntity() != null)// && h != -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user