final int index )
{
final int qty = inv.contents[ItemBitBag.INTS_PER_BIT_TYPE * index + ItemBitBag.OFFSET_QUANTITY];
final int id = inv.contents[ItemBitBag.INTS_PER_BIT_TYPE * index + ItemBitBag.OFFSET_STATE_ID];
if ( ModUtil.notEmpty( stackSlots[index] ) )
<BUG>{
ModUtil.setStackSize( stackSlots[index], qty );

return stackSlots[index];
}</BUG>
if ( qty == 0 || id == 0 )

final int index )
{
final int qty = inv.contents[ItemBitBag.INTS_PER_BIT_TYPE * index + ItemBitBag.OFFSET_QUANTITY];
final int id = inv.contents[ItemBitBag.INTS_PER_BIT_TYPE * index + ItemBitBag.OFFSET_STATE_ID];
if ( ModUtil.notEmpty( stackSlots[index] ) )
{
final ItemStack which = ModUtil.nonNull( stackSlots[index] );
ModUtil.setStackSize( which, qty );
return which;
}
