Fix a few annoying bugs
This commit is contained in:
parent
71e1e2c666
commit
d553c4774e
2 changed files with 2 additions and 2 deletions
|
@ -367,7 +367,7 @@ public class PartLogisticalTransporter extends PartSidedPipe implements ILogisti
|
||||||
if(tile instanceof IInventory)
|
if(tile instanceof IInventory)
|
||||||
{
|
{
|
||||||
IInventory inv = (IInventory)tile;
|
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)
|
if(stack != null && stack.getStack() != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -197,7 +197,7 @@ public final class InventoryUtils
|
||||||
|
|
||||||
if(sidedInventory.getStackInSlot(slotID) != null && sidedInventory.getStackInSlot(slotID).stackSize > 0)
|
if(sidedInventory.getStackInSlot(slotID) != null && sidedInventory.getStackInSlot(slotID).stackSize > 0)
|
||||||
{
|
{
|
||||||
ItemStack toSend = sidedInventory.getStackInSlot(slotID);
|
ItemStack toSend = sidedInventory.getStackInSlot(slotID).copy();
|
||||||
toSend.stackSize = 1;
|
toSend.stackSize = 1;
|
||||||
|
|
||||||
if(sidedInventory.canExtractItem(slotID, toSend, side))
|
if(sidedInventory.canExtractItem(slotID, toSend, side))
|
||||||
|
|
Loading…
Reference in a new issue