Fixed hoppers continuing to insert when they shouldn't into inscribers. Thanks @fscan
Original pull request : #2933
This commit is contained in:
@@ -105,7 +105,7 @@ public class TileInscriber extends AENetworkPowerTile implements IGridTickable,
|
|||||||
private int finalStep;
|
private int finalStep;
|
||||||
private long clientStart;
|
private long clientStart;
|
||||||
private final IItemHandler topItemHandler = new ItemHandler( 0, 0 );
|
private final IItemHandler topItemHandler = new ItemHandler( 0, 0 );
|
||||||
private final IItemHandler bottomItemHandler = new ItemHandler( 1, 0 );
|
private final IItemHandler bottomItemHandler = new ItemHandler( 1, 1 );
|
||||||
private final IItemHandler sideItemHandler = new ItemHandler( 2, 3 );
|
private final IItemHandler sideItemHandler = new ItemHandler( 2, 3 );
|
||||||
|
|
||||||
@Reflected
|
@Reflected
|
||||||
@@ -294,6 +294,20 @@ public class TileInscriber extends AENetworkPowerTile implements IGridTickable,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canInsertItem( final int slotIndex, final ItemStack insertingItem, final EnumFacing side )
|
||||||
|
{
|
||||||
|
if( !this.isItemValidForSlot( slotIndex, insertingItem ) )
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if( !getStackInSlot( slotIndex ).isEmpty() )
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canExtractItem( final int slotIndex, final ItemStack extractedItem, final EnumFacing side )
|
public boolean canExtractItem( final int slotIndex, final ItemStack extractedItem, final EnumFacing side )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user