#967: Store last lava contact location for events
By: Rafael S. M. Santos <eu@rafaelsms.com>
This commit is contained in:
@@ -887,7 +887,7 @@ public class CraftEventFactory {
|
||||
}
|
||||
return event;
|
||||
} else if (source == DamageSource.LAVA) {
|
||||
EntityDamageEvent event = (new EntityDamageByBlockEvent(null, entity.getBukkitEntity(), DamageCause.LAVA, modifiers, modifierFunctions));
|
||||
EntityDamageEvent event = (new EntityDamageByBlockEvent(blockDamage, entity.getBukkitEntity(), DamageCause.LAVA, modifiers, modifierFunctions));
|
||||
event.setCancelled(cancelled);
|
||||
callEvent(event);
|
||||
if (!event.isCancelled()) {
|
||||
|
||||
Reference in New Issue
Block a user