diff --git a/src/main/java/mods/betterfoliage/client/render/impl/RenderBlockLogs.java b/src/main/java/mods/betterfoliage/client/render/impl/RenderBlockLogs.java index de0e0629..4938ca36 100644 --- a/src/main/java/mods/betterfoliage/client/render/impl/RenderBlockLogs.java +++ b/src/main/java/mods/betterfoliage/client/render/impl/RenderBlockLogs.java @@ -31,7 +31,6 @@ public boolean isBlockAccepted(IBlockAccess blockAccess, int x, int y, int z, Bl public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) { blockAccess = world; ForgeDirection logVertDir = getLogVerticalDir(blockAccess, x, y, z); - if (TerraFirmaCraftIntegration.isTFCBlock(block)) logVertDir = TerraFirmaCraftIntegration.getLogVerticalDir(blockAccess, x, y, z); // use default renderer if we cannot determine log orientation if (logVertDir == ForgeDirection.UNKNOWN) { @@ -99,6 +98,9 @@ public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block b } protected ForgeDirection getLogVerticalDir(IBlockAccess blockAccess, int x, int y, int z) { + // support TFC logs + if (TerraFirmaCraftIntegration.isTFCBlock(blockAccess.getBlock(x, y, z))) return TerraFirmaCraftIntegration.getLogVerticalDir(blockAccess, x, y, z); + // standard way as done by BlockRotatedPillar switch((blockAccess.getBlockMetadata(x, y, z) >> 2) & 3) { case 0: return ForgeDirection.UP;