Minor Refactor.

This commit is contained in:
AlgorithmX2 2014-07-23 13:55:48 -05:00
parent d9a747d26b
commit c5aabb1c34
3 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ public class SecurityInventory implements IMEInventoryHandler<IAEItemStack>
{
final TileSecurity securityTile;
final public IItemList<IAEItemStack> storedItems = new ItemList( IAEItemStack.class );
final public IItemList<IAEItemStack> storedItems = AEApi.instance().storage().createItemList();
public SecurityInventory(TileSecurity ts) {
securityTile = ts;

View file

@ -268,7 +268,7 @@ public class TileCraftingTile extends AENetworkTile implements IAEMultiBlock, IP
if ( places.isEmpty() )
throw new RuntimeException( "No air or even the tile hat was destroyed?!?!" );
for (IAEItemStack ais : inv.getAvailableItems( new ItemList<IAEItemStack>( IAEItemStack.class ) ))
for (IAEItemStack ais : inv.getAvailableItems( AEApi.instance().storage().createItemList() ))
{
ais = ais.copy();
ais.setStackSize( ais.getItemStack().getMaxStackSize() );

View file

@ -1406,7 +1406,7 @@ public class Platform
if ( myItems != null )
{
for (IAEItemStack is : myItems.getAvailableItems( new ItemList( IAEItemStack.class ) ))
for (IAEItemStack is : myItems.getAvailableItems( AEApi.instance().storage().createItemList() ))
{
gs.postAlterationOfStoredItems( StorageChannel.ITEMS, is, src );
}
@ -1416,7 +1416,7 @@ public class Platform
if ( myFluids != null )
{
for (IAEFluidStack is : myFluids.getAvailableItems( new ItemList( IAEFluidStack.class ) ))
for (IAEFluidStack is : myFluids.getAvailableItems( AEApi.instance().storage().createFluidList() ) )
{
gs.postAlterationOfStoredItems( StorageChannel.FLUIDS, is, src );
}