Ensure grass rendering respects air block checks and update project Java home in gradle properties.
This commit is contained in:
@@ -9,3 +9,5 @@ mcp_mappings = stable_39
|
||||
|
||||
kotlin_version = 1.3.40
|
||||
forgelin_version = 1.8.4
|
||||
|
||||
org.gradle.java.home=C:\\Users\\catma\\.jdks\\corretto-1.8.0_482
|
||||
@@ -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