Fix crash

This commit is contained in:
Bruno Rybársky 2024-07-30 18:07:15 +02:00
parent 27a28d1f23
commit 3bd5e3d3ba

@ -71,7 +71,7 @@ public class EventHandler {
Item itemInSlot = stackInSlot.getItem();
if (itemGrenadeItemMap.containsKey(itemInSlot)) {
decrementComponent(GRENADE_TIMER_COMPONENT, stackInSlot);
GrenadeItem grenadeItem = itemGrenadeItemMap.get(itemInHand);
GrenadeItem grenadeItem = itemGrenadeItemMap.get(itemInSlot);
GrenadeItem.updateDamage(stackInSlot, grenadeItem);
grenadeItem.checkExplosions(world, player, stackInSlot);
}