1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2026-01-27 22:11:17 +00:00

Add back custom block highlights

Also bump Forge version to enable this
This commit is contained in:
SquidDev
2020-01-30 09:00:37 +00:00
parent f3a330e330
commit 05eada427b
6 changed files with 36 additions and 48 deletions

View File

@@ -41,10 +41,9 @@ public final class ComputerCraftProxyClient
RenderTypeLookup.setRenderLayer( ComputerCraft.Blocks.turtleNormal, RenderType.translucent() );
RenderTypeLookup.setRenderLayer( ComputerCraft.Blocks.turtleAdvanced, RenderType.translucent() );
// Monitors' textures have _entirely_ transparent sections which, while not translucent, requires being rendered
// as transparent.
RenderTypeLookup.setRenderLayer( ComputerCraft.Blocks.monitorNormal, RenderType.translucent() );
RenderTypeLookup.setRenderLayer( ComputerCraft.Blocks.monitorAdvanced, RenderType.translucent() );
// Monitors' textures have transparent fronts and so count as cutouts.
RenderTypeLookup.setRenderLayer( ComputerCraft.Blocks.monitorNormal, RenderType.cutout() );
RenderTypeLookup.setRenderLayer( ComputerCraft.Blocks.monitorAdvanced, RenderType.cutout() );
// Setup TESRs
ClientRegistry.bindTileEntityRenderer( TileMonitor.FACTORY_NORMAL, TileEntityMonitorRenderer::new );