!ignoreCancelleds

This commit is contained in:
Indyuce 2020-01-18 21:06:56 +01:00
parent f5461ef525
commit 564e94d484

View File

@ -50,7 +50,7 @@ import net.mmogroup.mmolib.api.item.NBTItem;
public class ItemUse implements Listener {
private static final DecimalFormat digit = new DecimalFormat("0.#");
@EventHandler
@EventHandler(ignoreCancelled = true)
public void a(PlayerInteractEvent event) {
if (!event.hasItem() || event.getHand() != EquipmentSlot.HAND)
return;