Action doesn't trigger if the ItemStack is stacking

Discussion in 'Plugin Development' started by stimoze, Jul 10, 2016.

Thread Status:
Not open for further replies.
  1. So i have this statement:

    Code:
                    if (e.getPlayer().getInventory().getItemInHand().equals(HealItem))
    The only problem is, when the itemstack is more than 1, my code doesn't trigger, so .equals() isn't the best solution because i want the ItemStack to work if it stacks. What would be the good solution?
     
Thread Status:
Not open for further replies.

Share This Page