From ecee464b34738ce03caa294383d9a15c4477b2fb Mon Sep 17 00:00:00 2001 From: cyberpwn Date: Mon, 13 Sep 2021 09:51:33 -0400 Subject: [PATCH] Fix decorant mods --- .../iris/engine/actuator/IrisDecorantActuator.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/volmit/iris/engine/actuator/IrisDecorantActuator.java b/src/main/java/com/volmit/iris/engine/actuator/IrisDecorantActuator.java index a75f9ea02..e0c24b2d3 100644 --- a/src/main/java/com/volmit/iris/engine/actuator/IrisDecorantActuator.java +++ b/src/main/java/com/volmit/iris/engine/actuator/IrisDecorantActuator.java @@ -78,14 +78,14 @@ public class IrisDecorantActuator extends EngineAssignedActuator { int finalI = i; burst.queue(() -> { int height; - int realX = (int) Math.round(modX(x + finalI)); + int realX = (int) Math.round(x + finalI); int realZ; IrisBiome biome, cave; for (int j = 0; j < output.getDepth(); j++) { boolean solid; int emptyFor = 0; int lastSolid = 0; - realZ = (int) Math.round(modZ(z + j)); + realZ = (int) Math.round(z + j); height = (int) Math.round(getComplex().getHeightStream().get(realX, realZ)); biome = getComplex().getTrueBiomeStream().get(realX, realZ); cave = shouldRay ? getComplex().getCaveBiomeStream().get(realX, realZ) : null; @@ -96,8 +96,8 @@ public class IrisDecorantActuator extends EngineAssignedActuator { if (height < getDimension().getFluidHeight()) { getSeaSurfaceDecorator().decorate(finalI, j, - realX, (int) Math.round(modX(x + finalI + 1)), (int) Math.round(modX(x + finalI - 1)), - realZ, (int) Math.round(modZ(z + j + 1)), (int) Math.round(modZ(z + j - 1)), + realX, (int) Math.round( + finalI + 1), (int) Math.round(x + finalI - 1), + realZ, (int) Math.round(z + j + 1), (int) Math.round(z + j - 1), output, biome, getDimension().getFluidHeight(), getEngine().getHeight()); getSeaFloorDecorator().decorate(finalI, j, realX, realZ, output, biome, height + 1, @@ -106,8 +106,8 @@ public class IrisDecorantActuator extends EngineAssignedActuator { if (height == getDimension().getFluidHeight()) { getShoreLineDecorator().decorate(finalI, j, - realX, (int) Math.round(modX(x + finalI + 1)), (int) Math.round(modX(x + finalI - 1)), - realZ, (int) Math.round(modZ(z + j + 1)), (int) Math.round(modZ(z + j - 1)), + realX, (int) Math.round(x + finalI + 1), (int) Math.round(x + finalI - 1), + realZ, (int) Math.round(z + j + 1), (int) Math.round(z + j - 1), output, biome, height, getEngine().getHeight()); }