mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-13 22:33:13 +00:00
Add Palette.DEFAULT
This commit is contained in:
parent
4e55e03c8b
commit
54273fc6e5
@ -205,7 +205,7 @@ public class GuiPrintout extends GuiContainer
|
||||
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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user