This commit is contained in:
modmuss50 2016-03-20 19:51:41 +00:00
parent b31806d004
commit fee31761b1

View file

@ -114,13 +114,24 @@ public class TileRecycler extends TilePowerAcceptor implements IWrenchable, IInv
public boolean canRecycle ()
{
if (getStackInSlot(input1) != null && getStackInSlot(output) == null ? true : getStackInSlot(output).stackSize < 64)
if (getStackInSlot(input1) != null && hasSlotGotSpace(input1))
{
return true;
}
return false;
}
public boolean hasSlotGotSpace(int slot){
if(getStackInSlot(slot) == null){
return true;
} else if(getStackInSlot(slot).stackSize < getStackInSlot(slot).getMaxStackSize()){
return true;
}
return true;
}
public boolean isBurning ()
{
return getEnergy() > cost;