1
0
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:
Lignum
2018-02-24 17:21:12 +01:00
parent 244907a39a
commit e0c9dc24e7
2 changed files with 22 additions and 12 deletions

View File

@@ -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;
}
}
}