[Fix] Pos calculation for Sky Filalux Feature (#86)

This commit is contained in:
Frank 2022-10-09 01:09:26 +02:00
parent adb9f00a15
commit a7d00094d5

View file

@ -54,7 +54,7 @@ public abstract class SkyScatterFeature extends ScatterFeature<ScatterFeatureCon
return new BlockPos(pos.getX(), MHelper.randRange(32, 192, world.getRandom()), pos.getZ());
}
protected boolean getGroundPlant(WorldGenLevel world, MutableBlockPos pos) {
protected boolean getGroundPlant(ScatterFeatureConfig cfg, WorldGenLevel world, MutableBlockPos pos) {
pos.setY(pos.getY() + MHelper.randRange(-getYOffset(), getYOffset(), world.getRandom()));
return true;
}