mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-06 07:46:08 +00:00
Insane Loader Propagation
This commit is contained in:
@@ -153,14 +153,15 @@ public class PlannedPiece {
|
||||
getPiece().getPlacementOptions().getRotation().setEnabled(false);
|
||||
int finalMinY = minY;
|
||||
RNG rng = getStructure().getRng().nextParallelRNG(37555);
|
||||
// TODO: REAL CLASSES!!!!!!!
|
||||
getObject().place(position.getX() + getObject().getCenter().getBlockX(), position.getY() + getObject().getCenter().getBlockY(), position.getZ() + getObject().getCenter().getBlockZ(), new IObjectPlacer() {
|
||||
@Override
|
||||
public int getHighest(int x, int z) {
|
||||
public int getHighest(int x, int z, IrisData data) {
|
||||
return position.getY();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHighest(int x, int z, boolean ignoreFluid) {
|
||||
public int getHighest(int x, int z, IrisData data, boolean ignoreFluid) {
|
||||
return position.getY();
|
||||
}
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ 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) + offset + (v.getH() / 2);
|
||||
int height = placer.getHighest(xx, zz, getData()) + offset + (v.getH() / 2);
|
||||
|
||||
if (options.getMode().equals(ObjectPlaceMode.PAINT) || options.isVacuum()) {
|
||||
height = -1;
|
||||
@@ -133,7 +133,7 @@ public class PlannedStructure {
|
||||
}
|
||||
|
||||
if (options.getMode().equals(ObjectPlaceMode.PAINT) || options.isVacuum()) {
|
||||
p.setY(placer.getHighest(xx, zz) + offset + (v.getH() / 2));
|
||||
p.setY(placer.getHighest(xx, zz, getData()) + offset + (v.getH() / 2));
|
||||
} else {
|
||||
p.setY(height);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user