Ensure grass rendering respects air block checks and update project Java home in gradle properties.
This commit is contained in:
@@ -102,6 +102,10 @@ class RenderGrass : AbstractBlockRenderingHandler(BetterFoliageMod.MOD_ID) {
|
||||
}
|
||||
|
||||
if (!Config.shortGrass.grassEnabled) return true
|
||||
|
||||
val stateAbove = ctx.blockState(up1)
|
||||
if (!stateAbove.block.isAir(stateAbove, ctx.world!!, ctx.pos.up())) return true
|
||||
|
||||
if (isSnowed && !Config.shortGrass.snowEnabled) return true
|
||||
if (ctx.blockState(up1).isOpaqueCube) return true
|
||||
if (Config.shortGrass.population < 64 && noise[ctx.pos] >= Config.shortGrass.population) return true
|
||||
|
||||
Reference in New Issue
Block a user