disable-interactions now disable block interactions as well

This commit is contained in:
Indyuce 2022-01-08 15:22:55 +01:00
parent 09ffb2155b
commit b5b3d8d430

View File

@ -94,7 +94,7 @@ public class DisableInteractions implements Listener {
NBTItem item = NBTItem.get(event.getItem());
if (item.getBoolean("MMOITEMS_DISABLE_INTERACTION") || item.hasTag("MMOITEMS_UNIDENTIFIED_ITEM"))
event.setUseItemInHand(Event.Result.DENY);
event.setCancelled(true);
}
/**