Fixed Bug: #0758 - Infinite smelting
This commit is contained in:
@@ -741,7 +741,7 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
|
|||||||
TileEntity tile = iHost.getTileEntity();
|
TileEntity tile = iHost.getTileEntity();
|
||||||
World w = tile.getWorldObj();
|
World w = tile.getWorldObj();
|
||||||
|
|
||||||
boolean allAreBusy=true;
|
boolean allAreBusy = true;
|
||||||
|
|
||||||
for (ForgeDirection s : possibleDirections)
|
for (ForgeDirection s : possibleDirections)
|
||||||
{
|
{
|
||||||
@@ -876,7 +876,13 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
|
|||||||
InventoryAdaptor ad = InventoryAdaptor.getAdaptor( te, s.getOpposite() );
|
InventoryAdaptor ad = InventoryAdaptor.getAdaptor( te, s.getOpposite() );
|
||||||
if ( ad != null )
|
if ( ad != null )
|
||||||
{
|
{
|
||||||
whatToSend = ad.addItems( whatToSend );
|
ItemStack Result = ad.addItems( whatToSend );
|
||||||
|
|
||||||
|
if ( Result == null )
|
||||||
|
whatToSend = null;
|
||||||
|
else
|
||||||
|
whatToSend.stackSize -= whatToSend.stackSize - Result.stackSize;
|
||||||
|
|
||||||
if ( whatToSend == null )
|
if ( whatToSend == null )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user