Don't call Grid cache updates if the grid is empty.
This commit is contained in:
parent
2cf84989d1
commit
7a3f2dcf5a
1 changed files with 6 additions and 2 deletions
|
@ -199,9 +199,13 @@ public class Grid implements IGrid
|
||||||
|
|
||||||
public void update()
|
public void update()
|
||||||
{
|
{
|
||||||
for (IGridCache gc : caches.values())
|
// are ther any nodes left?
|
||||||
|
if ( pivot != null )
|
||||||
{
|
{
|
||||||
gc.onUpdateTick();
|
for (IGridCache gc : caches.values())
|
||||||
|
{
|
||||||
|
gc.onUpdateTick();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue