keep round logs on the SOLID rendering layer
This commit is contained in:
@@ -18,6 +18,8 @@ import net.minecraft.util.EnumFacing.*
|
|||||||
|
|
||||||
class RenderLog : AbstractRenderColumn(BetterFoliageMod.MOD_ID) {
|
class RenderLog : AbstractRenderColumn(BetterFoliageMod.MOD_ID) {
|
||||||
|
|
||||||
|
override val moveToCutout: Boolean get() = false
|
||||||
|
|
||||||
override fun isEligible(ctx: BlockContext) =
|
override fun isEligible(ctx: BlockContext) =
|
||||||
Config.enabled && Config.roundLogs.enabled &&
|
Config.enabled && Config.roundLogs.enabled &&
|
||||||
ctx.cameraDistance < Config.roundLogs.distance &&
|
ctx.cameraDistance < Config.roundLogs.distance &&
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ val modelRenderer by ThreadLocalDelegate { ModelRenderer() }
|
|||||||
|
|
||||||
abstract class AbstractBlockRenderingHandler(modId: String) : ResourceHandler(modId) {
|
abstract class AbstractBlockRenderingHandler(modId: String) : ResourceHandler(modId) {
|
||||||
|
|
||||||
val moveToCutout: Boolean get() = true
|
open val moveToCutout: Boolean get() = true
|
||||||
|
|
||||||
// ============================
|
// ============================
|
||||||
// Custom rendering
|
// Custom rendering
|
||||||
|
|||||||
Reference in New Issue
Block a user