mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 17:51:31 +01:00
SPIGOT-1515: Use CUSTOM reason for GENERIC damage
By: md_5 <git@md-5.net>
This commit is contained in:
parent
f2ad797555
commit
52f38c04ff
@ -551,7 +551,7 @@ public class CraftEventFactory {
|
||||
} else if (source == DamageSource.FLY_INTO_WALL) {
|
||||
cause = DamageCause.FLY_INTO_WALL;
|
||||
} else if (source == DamageSource.GENERIC) {
|
||||
return new EntityDamageEvent(entity.getBukkitEntity(), null, modifiers, modifierFunctions);
|
||||
cause = DamageCause.CUSTOM;
|
||||
}
|
||||
|
||||
if (cause != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user