1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-26 07:03:22 +00:00

Add Palette.DEFAULT

This commit is contained in:
Lignum 2017-05-07 12:51:06 +02:00
parent 4e55e03c8b
commit 54273fc6e5
No known key found for this signature in database
GPG Key ID: 0889206F5A8A700D
2 changed files with 3 additions and 1 deletions

View File

@ -205,7 +205,7 @@ public void drawScreen(int mouseX, int mouseY, float f)
int lineIdx = ItemPrintout.LINES_PER_PAGE * m_page + line;
if( lineIdx >= 0 && lineIdx < m_text.length )
{
fontRenderer.drawString( m_text[lineIdx], x, y, m_colours[lineIdx], null, 0, 0, false, new Palette() );
fontRenderer.drawString( m_text[lineIdx], x, y, m_colours[lineIdx], null, 0, 0, false, Palette.DEFAULT );
}
y = y + FixedWidthFontRenderer.FONT_HEIGHT;
}

View File

@ -7,6 +7,8 @@ public class Palette
private static final int PALETTE_SIZE = 16;
private final float[][] colours = new float[PALETTE_SIZE][3];
public static final Palette DEFAULT = new Palette();
public Palette()
{
// Get the default palette