Don't erase inventory when someone asks for the drops...
This commit is contained in:
@@ -322,12 +322,8 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
|
||||
for (int l = 0; l < inv.getSizeInventory(); l++)
|
||||
{
|
||||
ItemStack is = inv.getStackInSlot( l );
|
||||
|
||||
if ( is != null )
|
||||
{
|
||||
drops.add( is );
|
||||
inv.setInventorySlotContents( l, (ItemStack) null );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -174,10 +174,7 @@ public class TileCellWorkbench extends AEBaseTile implements IUpgradeableHost, I
|
||||
super.getDrops( w, x, y, z, drops );
|
||||
|
||||
if ( cell.getStackInSlot( 0 ) != null )
|
||||
{
|
||||
drops.add( cell.getStackInSlot( 0 ) );
|
||||
cell.setInventorySlotContents( 0, null );
|
||||
}
|
||||
}
|
||||
|
||||
public ICellWorkbenchItem getCell()
|
||||
|
||||
Reference in New Issue
Block a user