This commit is contained in:
cyberpwn
2022-01-13 06:58:05 -05:00
parent 59150a655a
commit daf1a1baa2
@@ -81,7 +81,6 @@ public class IrisTerrainNormalActuator extends EngineAssignedActuator<BlockData>
*/ */
@BlockCoordinates @BlockCoordinates
public void terrainSliver(int x, int z, int xf, Hunk<BlockData> h) { public void terrainSliver(int x, int z, int xf, Hunk<BlockData> h) {
//
int zf, realX, realZ, hf, he; int zf, realX, realZ, hf, he;
IrisBiome biome; IrisBiome biome;
IrisRegion region; IrisRegion region;
@@ -94,7 +93,6 @@ public class IrisTerrainNormalActuator extends EngineAssignedActuator<BlockData>
he = (int) Math.round(Math.min(h.getHeight(), getComplex().getHeightStream().get(realX, realZ))); he = (int) Math.round(Math.min(h.getHeight(), getComplex().getHeightStream().get(realX, realZ)));
hf = Math.round(Math.max(Math.min(h.getHeight(), getDimension().getFluidHeight()), he)); hf = Math.round(Math.max(Math.min(h.getHeight(), getDimension().getFluidHeight()), he));
// this 0 is where we are going to need to modify the world base height, the Zero, not this instance...
if(hf < 0) { if(hf < 0) {
continue; continue;
} }
@@ -103,13 +101,11 @@ public class IrisTerrainNormalActuator extends EngineAssignedActuator<BlockData>
KList<BlockData> fblocks = null; KList<BlockData> fblocks = null;
int depth, fdepth; int depth, fdepth;
// Fluid height and lower
for(int i = hf; i >= 0; i--) { for(int i = hf; i >= 0; i--) {
if(i >= h.getHeight()) { // h.getheight is terrain height if(i >= h.getHeight()) { // h.getheight is terrain height
continue; continue;
} }
// will need to change
if(i == 0) { if(i == 0) {
if(getDimension().isBedrock()) { if(getDimension().isBedrock()) {
h.set(xf, i, zf, BEDROCK); h.set(xf, i, zf, BEDROCK);
@@ -134,7 +130,6 @@ public class IrisTerrainNormalActuator extends EngineAssignedActuator<BlockData>
continue; continue;
} }
// top of surface
if(i <= he) { if(i <= he) {
depth = he - i; depth = he - i;
if(blocks == null) { if(blocks == null) {