1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-25 10:57:57 +00:00

Merge pull request #351 from Wojbie/Fix-to-349-Monitors-causing-miscolouration-of-tile-entities

Fix to #349 - Monitors causing miscolouration of tile entities.
This commit is contained in:
Daniel Ratcliffe
2017-07-25 19:02:43 +01:00
committed by GitHub

View File

@@ -177,6 +177,7 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
} }
} }
GlStateManager.callList( origin.m_renderDisplayList ); GlStateManager.callList( origin.m_renderDisplayList );
GlStateManager.resetColor();
// Draw text // Draw text
mc.getTextureManager().bindTexture( FixedWidthFontRenderer.font ); mc.getTextureManager().bindTexture( FixedWidthFontRenderer.font );
@@ -204,6 +205,7 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
} }
} }
GlStateManager.callList( origin.m_renderDisplayList + 1 ); GlStateManager.callList( origin.m_renderDisplayList + 1 );
GlStateManager.resetColor();
// Draw cursor // Draw cursor
mc.getTextureManager().bindTexture( FixedWidthFontRenderer.font ); mc.getTextureManager().bindTexture( FixedWidthFontRenderer.font );
@@ -237,6 +239,7 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
if( ComputerCraft.getGlobalCursorBlink() ) if( ComputerCraft.getGlobalCursorBlink() )
{ {
GlStateManager.callList( origin.m_renderDisplayList + 2 ); GlStateManager.callList( origin.m_renderDisplayList + 2 );
GlStateManager.resetColor();
} }
} }
finally finally