Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
[Bleeding] Ignore damage done by LivingEntity.damage(). Fixes BUKKIT-5666
This matches behavior previous to new damage event API of not throwing events for plugin-triggered damage.
Dieser Commit ist enthalten in:
Ursprung
6364f59ac4
Commit
9099e48e74
@ -511,6 +511,8 @@ public class CraftEventFactory {
|
||||
cause = DamageCause.MAGIC;
|
||||
} else if (source == DamageSource.FALL) {
|
||||
cause = DamageCause.FALL;
|
||||
} else if (source == DamageSource.GENERIC) {
|
||||
return new EntityDamageEvent(entity.getBukkitEntity(), null, modifiers);
|
||||
}
|
||||
|
||||
if (cause != null) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren