Fix hunk oob through have mod

This commit is contained in:
cyberpwn 2021-09-11 06:22:57 -04:00
parent 784fca98c8
commit 979f959291

View File

@ -169,13 +169,13 @@ public class IrisCarveModifier extends EngineAssignedModifier<BlockData> {
} }
private void processZone(Hunk<BlockData> output, MantleChunk mc, Mantle mantle, CaveZone zone, int rx, int rz, int xx, int zz) { private void processZone(Hunk<BlockData> output, MantleChunk mc, Mantle mantle, CaveZone zone, int rx, int rz, int xx, int zz) {
boolean decFloor = B.isSolid(output.get(rx, zone.floor - 1, rz)); boolean decFloor = B.isSolid(output.getClosest(rx, zone.floor - 1, rz));
boolean decCeiling = B.isSolid(output.get(rx, zone.ceiling + 1, rz)); boolean decCeiling = B.isSolid(output.getClosest(rx, zone.ceiling + 1, rz));
int center = (zone.floor + zone.ceiling) / 2; int center = (zone.floor + zone.ceiling) / 2;
int thickness = zone.airThickness(); int thickness = zone.airThickness();
String customBiome = ""; String customBiome = "";
if (B.isDecorant(output.get(rx, zone.ceiling + 1, rz))) { if (B.isDecorant(output.getClosest(rx, zone.ceiling + 1, rz))) {
output.set(rx, zone.ceiling + 1, rz, AIR); output.set(rx, zone.ceiling + 1, rz, AIR);
} }