Interfaces now drop there items properly.

This commit is contained in:
AlgorithmX2
2014-06-22 23:51:20 -05:00
parent 12c0abbac6
commit d730fe17b1
3 changed files with 27 additions and 11 deletions
+1 -11
View File
@@ -75,17 +75,7 @@ public class PartInterface extends PartBasicState implements IGridTickable, ISeg
@Override
public void getDrops(List<ItemStack> drops, boolean wrenched)
{
IInventory inv = duality.getInternalInventory();
for (int l = 0; l < inv.getSizeInventory(); l++)
{
ItemStack is = inv.getStackInSlot( l );
if ( is != null )
{
drops.add( is );
inv.setInventorySlotContents( l, (ItemStack) null );
}
}
duality.addDrops( drops );
}
@Override