Fix a few annoying bugs

This commit is contained in:
Aidan C. Brady 2014-03-08 11:51:13 -05:00
parent 71e1e2c666
commit d553c4774e
2 changed files with 2 additions and 2 deletions

View file

@ -367,7 +367,7 @@ public class PartLogisticalTransporter extends PartSidedPipe implements ILogisti
if(tile instanceof IInventory)
{
IInventory inv = (IInventory)tile;
InvStack stack = InventoryUtils.takeTopItem(inv, side.ordinal());
InvStack stack = InventoryUtils.takeTopItem(inv, side.getOpposite().ordinal());
if(stack != null && stack.getStack() != null)
{

View file

@ -197,7 +197,7 @@ public final class InventoryUtils
if(sidedInventory.getStackInSlot(slotID) != null && sidedInventory.getStackInSlot(slotID).stackSize > 0)
{
ItemStack toSend = sidedInventory.getStackInSlot(slotID);
ItemStack toSend = sidedInventory.getStackInSlot(slotID).copy();
toSend.stackSize = 1;
if(sidedInventory.canExtractItem(slotID, toSend, side))