mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-12 10:20:28 +00:00
Fix monitors fetching palette when there is no terminal
This commit is contained in:
parent
ac2382a861
commit
a9e7acbec5
@ -49,8 +49,6 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Palette palette = origin.getTerminal().getTerminal().getPalette();
|
|
||||||
|
|
||||||
// Ensure each monitor is rendered only once
|
// Ensure each monitor is rendered only once
|
||||||
long renderFrame = ComputerCraft.getRenderFrame();
|
long renderFrame = ComputerCraft.getRenderFrame();
|
||||||
if( origin.m_lastRenderFrame == renderFrame )
|
if( origin.m_lastRenderFrame == renderFrame )
|
||||||
@ -107,6 +105,8 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
|
|||||||
{
|
{
|
||||||
if( terminal != null )
|
if( terminal != null )
|
||||||
{
|
{
|
||||||
|
Palette palette = terminal.getPalette();
|
||||||
|
|
||||||
// Allocate display lists
|
// Allocate display lists
|
||||||
if( origin.m_renderDisplayList < 0 )
|
if( origin.m_renderDisplayList < 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user