Skip to content

Commit

Permalink
Fix slime saplings not growing at a Y that's below zero. (#4916)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Behrhof committed Jun 19, 2022
1 parent 4cacbc1 commit af4ebe3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private boolean place(WorldGenLevel level, Random rand, BlockPos positionIn, Set
// blockpos = positionIn;
// }

if (positionIn.getY() >= 1 && positionIn.getY() + height + 1 <= level.getMaxBuildHeight() && isSlimySoilAt(level, positionIn.below())) {
if (positionIn.getY() >= level.getMinBuildHeight() + 1 && positionIn.getY() + height + 1 <= level.getMaxBuildHeight() && isSlimySoilAt(level, positionIn.below())) {
this.setDirtAt(level, positionIn.below(), positionIn);
this.placeTrunk(level, rand, height, positionIn, trunkBlockPosSet, boundingBoxIn, configIn);
this.placeCanopy(level, rand, height, positionIn, trunkBlockPosSet, boundingBoxIn, configIn);
Expand Down

0 comments on commit af4ebe3

Please sign in to comment.