Fixed World Unload Crash.

Fixed render crashes for items that are not available.
Parts now load properly.
This commit is contained in:
AlgorithmX2
2014-01-28 16:30:14 -06:00
parent 24ad83356c
commit 699e82a889
4 changed files with 51 additions and 11 deletions
+7 -3
View File
@@ -83,15 +83,19 @@ public class TickHandler implements ITickHandler
{
if ( Platform.isServer() )
{
while (!getRepo().networks.isEmpty())
LinkedList<IGridNode> toDestroy = new LinkedList();
for (Grid g : getRepo().networks)
{
Grid g = getRepo().networks.poll();
for (IGridNode n : g.getNodes())
{
if ( n.getWorld() == ev.world )
n.destroy();
toDestroy.add( n );
}
}
for (IGridNode n : toDestroy)
n.destroy();
}
}