Skip to content

Commit e0e228c

Browse files
committed
fix NPE of item in lava Cauldron
1 parent d166d24 commit e0e228c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patches/server/0005-Add-origin-location-to-EntityDamageByBlockEvent.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ index 8e18a66c45af55ef37794cb6c00f565a347c95aa..b5ad5d810dbad4609bde5f0e12249be1
3131
return event;
3232
} else if (source.is(DamageTypes.LAVA)) {
3333
- EntityDamageEvent event = (new EntityDamageByBlockEvent(CraftEventFactory.blockDamage, entity.getBukkitEntity(), DamageCause.LAVA, modifiers, modifierFunctions));
34-
+ EntityDamageEvent event = (new EntityDamageByBlockEvent(CraftEventFactory.blockDamage, entity.getBukkitEntity(), DamageCause.LAVA, modifiers, modifierFunctions, null, blockDamage.getLocation()));
34+
+ EntityDamageEvent event = (new EntityDamageByBlockEvent(CraftEventFactory.blockDamage, entity.getBukkitEntity(), DamageCause.LAVA, modifiers, modifierFunctions, null, entity.getBukkitEntity().getLocation()));
3535
event.setCancelled(cancelled);
3636

3737
Block damager = CraftEventFactory.blockDamage;

0 commit comments

Comments
 (0)