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
+4 -2
View File
@@ -47,10 +47,11 @@ public class CraftingCache implements IGridCache, ICraftingProviderHelper, ICell
grid = g;
}
@MENetworkEventSubscribe
public void afterCacheConstruction(MENetworkPostCacheConstruction cc)
{
IStorageGrid sg = grid.getCache( IStorageGrid.class );
sg.addCellProvider( this );
sg.registerCellProvider( this );
}
@Override
@@ -173,7 +174,8 @@ public class CraftingCache implements IGridCache, ICraftingProviderHelper, ICell
public List<IMEInventoryHandler> getCellArray(StorageChannel channel)
{
ArrayList<IMEInventoryHandler> list = new ArrayList<IMEInventoryHandler>( 1 );
list.add( this );
if ( channel == StorageChannel.ITEMS )
list.add( this );
return list;
}