mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
!ignoreCancelleds
This commit is contained in:
parent
f5461ef525
commit
564e94d484
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user