Minor Refactor.
This commit is contained in:
parent
d9a747d26b
commit
c5aabb1c34
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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() );
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue