mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-09 09:52:59 +00:00
Generate individual display lists instead of relying on their names being contiguous
This commit is contained in:
@@ -11,7 +11,7 @@ public class ClientMonitor extends ClientTerminal
|
||||
private final TileMonitor origin;
|
||||
|
||||
public long lastRenderFrame = -1;
|
||||
public int renderDisplayList = -1;
|
||||
public int[] renderDisplayLists = null;
|
||||
|
||||
public ClientMonitor( boolean colour, TileMonitor origin )
|
||||
{
|
||||
@@ -26,10 +26,14 @@ public class ClientMonitor extends ClientTerminal
|
||||
|
||||
public void destroy()
|
||||
{
|
||||
if( renderDisplayList != -1 )
|
||||
if( renderDisplayLists != null )
|
||||
{
|
||||
ComputerCraft.deleteDisplayLists( renderDisplayList, 3 );
|
||||
renderDisplayList = -1;
|
||||
for( int displayList : renderDisplayLists )
|
||||
{
|
||||
ComputerCraft.deleteDisplayLists( displayList, 1 );
|
||||
}
|
||||
|
||||
renderDisplayLists = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user