9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-30 20:39:21 +00:00

tall_seagrass isnt sticking out of water anymore

This commit is contained in:
RePixelatedMC
2024-05-22 16:55:07 +02:00
parent b1ab2b84f8
commit 57efcab0b5

View File

@@ -41,9 +41,11 @@ public class IrisSeaFloorDecorator extends IrisEngineDecorator {
if (!decorator.isStacking()) {
if (height >= 0 || height < getEngine().getHeight()) {
if (null != decorator.getBlockDataForTop(biome, getRng(), realX, height, realZ, getData())) {
data.set(x, height, z, decorator.getBlockData100(biome, getRng(), realX, height, realZ, getData()));
height++;
data.set(x, height, z, decorator.getBlockDataForTop(biome, getRng(), realX, height, realZ, getData()));
if (height == getDimension().getFluidHeight() - 1) {
data.set(x, height, z, decorator.getBlockData100(biome, getRng(), realX, height, realZ, getData()));
height++;
data.set(x, height, z, decorator.getBlockDataForTop(biome, getRng(), realX, height, realZ, getData()));
}
} else {
data.set(x, height, z, decorator.getBlockData100(biome, getRng(), realX, height, realZ, getData()));
}
@@ -73,6 +75,5 @@ public class IrisSeaFloorDecorator extends IrisEngineDecorator {
}
}
}
}
}