You didn't see anything...

This commit is contained in:
StrangeOne101 2021-07-10 22:49:25 +12:00
parent 13a5482f91
commit fb0ff734d7
3 changed files with 17 additions and 21 deletions

View File

@ -106,7 +106,7 @@ public class IrisDecorantActuator extends EngineAssignedActuator<BlockData>
{ {
if (emptyFor > 0) { if (emptyFor > 0) {
getSurfaceDecorator().decorate(i, j, realX, realZ, output, cave, k, emptyFor); getSurfaceDecorator().decorate(i, j, realX, realZ, output, cave, k, emptyFor);
getCeilingDecorator().decorate(i, j, realX, realZ, output, cave, lastSolid, emptyFor); getCeilingDecorator().decorate(i, j, realX, realZ, output, cave, lastSolid - 1, emptyFor);
emptyFor = 0; emptyFor = 0;
} }
lastSolid = k; lastSolid = k;

View File

@ -36,7 +36,7 @@ public class IrisCeilingDecorator extends IrisEngineDecorator
for(int i = 0; i < stack; i++) for(int i = 0; i < stack; i++)
{ {
double threshold = (((double)i) / (double)(stack - 1)); double threshold = (((double)i) / (double)(stack - 1));
data.set(x, height-i, z, threshold >= decorator.getTopThreshold() ? top : fill); data.set(x, height - i, z, threshold >= decorator.getTopThreshold() ? top : fill);
} }
} }
} }

View File

@ -16,28 +16,24 @@ public class IrisSeaSurfaceDecorator extends IrisEngineDecorator
@Override @Override
public void decorate(int x, int z, int realX, int realX1, int realX_1, int realZ, int realZ1, int realZ_1, Hunk<BlockData> data, IrisBiome biome, int height, int max) { public void decorate(int x, int z, int realX, int realX1, int realX_1, int realZ, int realZ1, int realZ_1, Hunk<BlockData> data, IrisBiome biome, int height, int max) {
if(height > getDimension().getFluidHeight()) { IrisDecorator decorator = getDecorator(biome, realX, realZ);
if(decorator != null)
{
if(!decorator.isStacking())
{ {
IrisDecorator decorator = getDecorator(biome, realX, realZ); data.set(x, getDimension().getFluidHeight()+1, z, decorator.getBlockData100(biome, getRng(), realX, realZ, getData()));
}
else
{
int stack = decorator.getHeight(getRng().nextParallelRNG(Cache.key(realX, realZ)), realX, realZ, getData());
if(decorator != null) BlockData top = decorator.getBlockDataForTop(biome, getRng(), realX, realZ, getData());
BlockData fill = decorator.getBlockData100(biome, getRng(), realX, realZ, getData());
for(int i = 0; i < stack; i++)
{ {
if(!decorator.isStacking()) double threshold = ((double)i) / (stack - 1);
{ data.set(x, getDimension().getFluidHeight() + 1 + i, z, threshold >= decorator.getTopThreshold() ? top : fill);
data.set(x, getDimension().getFluidHeight()+1, z, decorator.getBlockData100(biome, getRng(), realX, realZ, getData()));
}
else
{
int stack = decorator.getHeight(getRng().nextParallelRNG(Cache.key(realX, realZ)), realX, realZ, getData());
BlockData top = decorator.getBlockDataForTop(biome, getRng(), realX, realZ, getData());
BlockData fill = decorator.getBlockData100(biome, getRng(), realX, realZ, getData());
for(int i = 0; i < stack; i++)
{
double threshold = ((double)i) / (stack - 1);
data.set(x, getDimension().getFluidHeight()+1+i, z, threshold >= decorator.getTopThreshold() ? top : fill);
}
}
} }
} }
} }