Fix crash
This commit is contained in:
parent
27a28d1f23
commit
3bd5e3d3ba
@ -71,7 +71,7 @@ public class EventHandler {
|
|||||||
Item itemInSlot = stackInSlot.getItem();
|
Item itemInSlot = stackInSlot.getItem();
|
||||||
if (itemGrenadeItemMap.containsKey(itemInSlot)) {
|
if (itemGrenadeItemMap.containsKey(itemInSlot)) {
|
||||||
decrementComponent(GRENADE_TIMER_COMPONENT, stackInSlot);
|
decrementComponent(GRENADE_TIMER_COMPONENT, stackInSlot);
|
||||||
GrenadeItem grenadeItem = itemGrenadeItemMap.get(itemInHand);
|
GrenadeItem grenadeItem = itemGrenadeItemMap.get(itemInSlot);
|
||||||
GrenadeItem.updateDamage(stackInSlot, grenadeItem);
|
GrenadeItem.updateDamage(stackInSlot, grenadeItem);
|
||||||
grenadeItem.checkExplosions(world, player, stackInSlot);
|
grenadeItem.checkExplosions(world, player, stackInSlot);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user