1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-26 08:56:54 +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
commit 77cadf52fe

View File

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