Crystal grass & small changes

This commit is contained in:
paulevsGitch 2020-10-26 06:03:54 +03:00
parent 4073e0a32c
commit 7de70c9553
22 changed files with 376 additions and 14 deletions

View file

@ -39,7 +39,7 @@ public abstract class ScatterFeature extends DefaultFeature {
protected boolean getGroundPlant(StructureWorldAccess world, Mutable pos) {
int down = BlocksHelper.downRay(world, pos, 16);
if (down > 10) {
if (down > Math.abs(getYOffset() * 2)) {
return false;
}
pos.setY(pos.getY() - down);