Skip to content

Commit

Permalink
Switch to !stack.isEmpty() and not checking if the stack is != to Ite…
Browse files Browse the repository at this point in the history
…mStack.EMPTY
  • Loading branch information
alexbegt committed May 21, 2017
1 parent 4b965a3 commit ea346db
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -56,7 +56,7 @@ private float updatePullProperty(ItemStack stack, World worldIn, EntityLivingBas
else
{
ItemStack itemstack = entityIn.getActiveItemStack();
return itemstack != ItemStack.EMPTY && itemstack.getItem() == this.bow ? (stack.getMaxItemUseDuration() - entityIn.getItemInUseCount()) / 20.0F : 0.0F;
return !itemstack.isEmpty() && itemstack.getItem() == this.bow ? (stack.getMaxItemUseDuration() - entityIn.getItemInUseCount()) / 20.0F : 0.0F;
}
}
}

0 comments on commit ea346db

Please sign in to comment.