This commit is contained in:
cyberpwn
2021-08-28 11:55:47 -04:00
parent f06d5b806a
commit 354b02612d
12 changed files with 96 additions and 4 deletions
@@ -84,6 +84,11 @@ public interface EngineMantle extends IObjectPlacer {
return getComplex().getTrueHeightStream().get(x, z);
}
default boolean isCarved(int x, int h, int z)
{
return getMantle().get(x, h, z, MatterCavern.class) != null;
}
@Override
default void set(int x, int y, int z, BlockData d) {
getMantle().set(x, y, z, d == null ? AIR : d);
@@ -121,6 +121,11 @@ public class MantleWriter implements IObjectPlacer {
return getEngineMantle().isPreventingDecay();
}
@Override
public boolean isCarved(int x, int y, int z) {
return getEngineMantle().isCarved(x, y, z);
}
@Override
public boolean isSolid(int x, int y, int z) {
return getEngineMantle().isSolid(x, y, z);
@@ -94,7 +94,6 @@ public class MantleObjectComponent extends IrisMantleComponent {
int zz = rng.i(z, z + 15);
int id = rng.i(0, Integer.MAX_VALUE);
int h = v.place(xx, -1, zz, writer, objectPlacement, rng,
(b) -> writer.setData(b.getX(), b.getY(), b.getZ(),
v.getLoadKey() + "@" + id), null, getData());