Storage grid can now properly see crafting grid.

This commit is contained in:
AlgorithmX2
2014-05-22 21:42:27 -05:00
parent 168309ee50
commit ef4cab8f61
2 changed files with 17 additions and 3 deletions
+13 -1
View File
@@ -62,6 +62,19 @@ public class GridStorageCache implements IStorageGrid
}
@Override
public void registerCellProvider(ICellProvider provider)
{
inactiveCellProviders.add( provider );
addCellProvider( provider );
}
@Override
public void unregisterCellProvider(ICellProvider provider)
{
removeCellProvider( provider );
inactiveCellProviders.remove( provider );
}
public void addCellProvider(ICellProvider cc)
{
if ( inactiveCellProviders.contains( cc ) )
@@ -85,7 +98,6 @@ public class GridStorageCache implements IStorageGrid
}
}
@Override
public void removeCellProvider(ICellProvider cc)
{
if ( activeCellProviders.contains( cc ) )