Skip to content

Commit

Permalink
tall_seagrass isnt sticking out of water anymore
Browse files Browse the repository at this point in the history
by RePixelatedMC
  • Loading branch information
CrazyDev05 committed Aug 3, 2024
1 parent 7cf43ad commit ceb6c15
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ public void decorate(int x, int z, int realX, int realX1, int realX_1, int realZ
}
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()));
}
Expand Down

0 comments on commit ceb6c15

Please sign in to comment.