mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
You didn't see anything...
This commit is contained in:
parent
13a5482f91
commit
fb0ff734d7
@ -106,7 +106,7 @@ public class IrisDecorantActuator extends EngineAssignedActuator<BlockData>
|
||||
{
|
||||
if (emptyFor > 0) {
|
||||
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;
|
||||
}
|
||||
lastSolid = k;
|
||||
|
@ -36,7 +36,7 @@ public class IrisCeilingDecorator extends IrisEngineDecorator
|
||||
for(int i = 0; i < stack; i++)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,28 +16,24 @@ public class IrisSeaSurfaceDecorator extends IrisEngineDecorator
|
||||
|
||||
@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) {
|
||||
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())
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
double threshold = ((double)i) / (stack - 1);
|
||||
data.set(x, getDimension().getFluidHeight() + 1 + i, z, threshold >= decorator.getTopThreshold() ? top : fill);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user