Optional object type name placement

This commit is contained in:
cyberpwn
2021-09-21 08:18:13 -04:00
parent 726718a6f5
commit 82982c54f9
3 changed files with 7 additions and 6 deletions

View File

@@ -147,6 +147,6 @@ public class MantleJigsawComponent extends IrisMantleComponent {
@BlockCoordinates
private void place(MantleWriter writer, IrisPosition position, IrisJigsawStructure structure, RNG rng) {
new PlannedStructure(structure, position, rng).place(writer, getMantle());
new PlannedStructure(structure, position, rng).place(writer, getMantle(), writer.getEngine());
}
}

View File

@@ -96,7 +96,7 @@ public class MantleObjectComponent extends IrisMantleComponent {
int zz = rng.i(z, z + 15);
int id = rng.i(0, Integer.MAX_VALUE);
v.place(xx, -1, zz, writer, objectPlacement, rng,
(b) -> writer.setData(b.getX(), b.getY(), b.getZ(),
getMantle().shouldReduce(getEngineMantle().getEngine()) ? null : (b) -> writer.setData(b.getX(), b.getY(), b.getZ(),
v.getLoadKey() + "@" + id), null, getData());
}
}