mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fix decorant mods
This commit is contained in:
parent
42789fcc24
commit
ecee464b34
@ -78,14 +78,14 @@ public class IrisDecorantActuator extends EngineAssignedActuator<BlockData> {
|
|||||||
int finalI = i;
|
int finalI = i;
|
||||||
burst.queue(() -> {
|
burst.queue(() -> {
|
||||||
int height;
|
int height;
|
||||||
int realX = (int) Math.round(modX(x + finalI));
|
int realX = (int) Math.round(x + finalI);
|
||||||
int realZ;
|
int realZ;
|
||||||
IrisBiome biome, cave;
|
IrisBiome biome, cave;
|
||||||
for (int j = 0; j < output.getDepth(); j++) {
|
for (int j = 0; j < output.getDepth(); j++) {
|
||||||
boolean solid;
|
boolean solid;
|
||||||
int emptyFor = 0;
|
int emptyFor = 0;
|
||||||
int lastSolid = 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));
|
height = (int) Math.round(getComplex().getHeightStream().get(realX, realZ));
|
||||||
biome = getComplex().getTrueBiomeStream().get(realX, realZ);
|
biome = getComplex().getTrueBiomeStream().get(realX, realZ);
|
||||||
cave = shouldRay ? getComplex().getCaveBiomeStream().get(realX, realZ) : null;
|
cave = shouldRay ? getComplex().getCaveBiomeStream().get(realX, realZ) : null;
|
||||||
@ -96,8 +96,8 @@ public class IrisDecorantActuator extends EngineAssignedActuator<BlockData> {
|
|||||||
|
|
||||||
if (height < getDimension().getFluidHeight()) {
|
if (height < getDimension().getFluidHeight()) {
|
||||||
getSeaSurfaceDecorator().decorate(finalI, j,
|
getSeaSurfaceDecorator().decorate(finalI, j,
|
||||||
realX, (int) Math.round(modX(x + finalI + 1)), (int) Math.round(modX(x + finalI - 1)),
|
realX, (int) Math.round( + finalI + 1), (int) Math.round(x + finalI - 1),
|
||||||
realZ, (int) Math.round(modZ(z + j + 1)), (int) Math.round(modZ(z + j - 1)),
|
realZ, (int) Math.round(z + j + 1), (int) Math.round(z + j - 1),
|
||||||
output, biome, getDimension().getFluidHeight(), getEngine().getHeight());
|
output, biome, getDimension().getFluidHeight(), getEngine().getHeight());
|
||||||
getSeaFloorDecorator().decorate(finalI, j,
|
getSeaFloorDecorator().decorate(finalI, j,
|
||||||
realX, realZ, output, biome, height + 1,
|
realX, realZ, output, biome, height + 1,
|
||||||
@ -106,8 +106,8 @@ public class IrisDecorantActuator extends EngineAssignedActuator<BlockData> {
|
|||||||
|
|
||||||
if (height == getDimension().getFluidHeight()) {
|
if (height == getDimension().getFluidHeight()) {
|
||||||
getShoreLineDecorator().decorate(finalI, j,
|
getShoreLineDecorator().decorate(finalI, j,
|
||||||
realX, (int) Math.round(modX(x + finalI + 1)), (int) Math.round(modX(x + finalI - 1)),
|
realX, (int) Math.round(x + finalI + 1), (int) Math.round(x + finalI - 1),
|
||||||
realZ, (int) Math.round(modZ(z + j + 1)), (int) Math.round(modZ(z + j - 1)),
|
realZ, (int) Math.round(z + j + 1), (int) Math.round(z + j - 1),
|
||||||
output, biome, height, getEngine().getHeight());
|
output, biome, height, getEngine().getHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user