mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-12 02:10:30 +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;
|
||||
}
|
||||
|
||||
Palette palette = origin.getTerminal().getTerminal().getPalette();
|
||||
|
||||
// Ensure each monitor is rendered only once
|
||||
long renderFrame = ComputerCraft.getRenderFrame();
|
||||
if( origin.m_lastRenderFrame == renderFrame )
|
||||
@ -107,6 +105,8 @@ public class TileEntityMonitorRenderer extends TileEntitySpecialRenderer<TileMon
|
||||
{
|
||||
if( terminal != null )
|
||||
{
|
||||
Palette palette = terminal.getPalette();
|
||||
|
||||
// Allocate display lists
|
||||
if( origin.m_renderDisplayList < 0 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user