1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 11:10:29 +00:00

Reset a few more flags when rendering printouts

Closes #63
This commit is contained in:
SquidDev 2018-08-13 22:25:58 +01:00
parent 1774f1a079
commit d2a9e7e458

View File

@ -65,6 +65,10 @@ public class PrintoutRenderer
public static void drawText( int x, int y, int start, String[] text, String[] colours ) public static void drawText( int x, int y, int start, String[] text, String[] colours )
{ {
GlStateManager.color( 1.0f, 1.0f, 1.0f, 1.0f );
GlStateManager.enableBlend();
GlStateManager.enableTexture2D();
FixedWidthFontRenderer fontRenderer = (FixedWidthFontRenderer) ComputerCraft.getFixedWidthFontRenderer(); FixedWidthFontRenderer fontRenderer = (FixedWidthFontRenderer) ComputerCraft.getFixedWidthFontRenderer();
for( int line = 0; line < LINES_PER_PAGE && line < text.length; ++line ) for( int line = 0; line < LINES_PER_PAGE && line < text.length; ++line )
@ -76,6 +80,9 @@ public class PrintoutRenderer
public static void drawBorder( double x, double y, double z, int page, int pages, boolean isBook ) public static void drawBorder( double x, double y, double z, int page, int pages, boolean isBook )
{ {
GlStateManager.color( 1.0f, 1.0f, 1.0f, 1.0f ); GlStateManager.color( 1.0f, 1.0f, 1.0f, 1.0f );
GlStateManager.enableBlend();
GlStateManager.enableTexture2D();
Minecraft.getMinecraft().getTextureManager().bindTexture( BG ); Minecraft.getMinecraft().getTextureManager().bindTexture( BG );
Tessellator tessellator = Tessellator.getInstance(); Tessellator tessellator = Tessellator.getInstance();