diff --git a/src/main/kotlin/mods/betterfoliage/client/render/RenderLog.kt b/src/main/kotlin/mods/betterfoliage/client/render/RenderLog.kt index e78d04c..6150583 100644 --- a/src/main/kotlin/mods/betterfoliage/client/render/RenderLog.kt +++ b/src/main/kotlin/mods/betterfoliage/client/render/RenderLog.kt @@ -22,8 +22,9 @@ class RenderLog : AbstractRenderColumn(BetterFoliageMod.MOD_ID) { Config.blocks.logs.matchesID(ctx.block) override var axisFunc = { state: IBlockState -> - val axis = tryDefault(null) { state.getValue(BlockLog.LOG_AXIS).toString() } ?: - state.properties.entries.find { it.key.getName().toLowerCase() == "axis" }?.let { it.value.toString() } + var axis = tryDefault(null) { state.getValue(BlockLog.LOG_AXIS).toString() } ?: + (state.properties as ImmutableMap).entries + .find { it.key.name.toLowerCase() == "axis" }?.let { it.value.toString() } when (axis) { "x" -> Axis.X "y" -> Axis.Y