Bug Verified

~onConsume throws a nullPointerException and does not execute the relevant mechanic

#6288 opened by Unknown 1 year ago

Unknownreported this bug

When consuming an item with ~onConsume MythicCrucible throws a java.lang.NullPointerException: Cannot invoke "org.bukkit.inventory.EquipmentSlot.equals(Object)" because the return value of "io.lumine.mythic.core.drops.EquipSlot.getBukkitSlot()" is null and does not execute the message

This happens for the following item

Item:

testfood:  
  Material: BREAD
  Display: "testfood"
  Skills:
  - message{m=yada} @self ~onconsume 

Error:https://mclo.gs/HE8UoVl

Log: https://mclo.gs/FVkkdJM

Unknowncommented

Also getting this error when using the consumable component.

Netherite_Pops:
  Material: NETHERITE_SCRAP
  Display: 'Delicious Scraps'
  Consumable:
    ConsumeSeconds: 0.5
    HasParticles: true
    Animation: EAT
  Food:
    Nutrition: 20
    Saturation: 20
    CanAlwaysEat: true
Unknowncommented

Can confirm that ~onConsume has not worked since MythicCrucible-2.2.0-4000.

Sign in to join the discussion.