SPIGOT-1515: Use CUSTOM reason for GENERIC damage
This commit is contained in:
parent
1628ce6240
commit
67b242440b
@ -551,7 +551,7 @@ public class CraftEventFactory {
|
|||||||
} else if (source == DamageSource.FLY_INTO_WALL) {
|
} else if (source == DamageSource.FLY_INTO_WALL) {
|
||||||
cause = DamageCause.FLY_INTO_WALL;
|
cause = DamageCause.FLY_INTO_WALL;
|
||||||
} else if (source == DamageSource.GENERIC) {
|
} else if (source == DamageSource.GENERIC) {
|
||||||
return new EntityDamageEvent(entity.getBukkitEntity(), null, modifiers, modifierFunctions);
|
cause = DamageCause.CUSTOM;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cause != null) {
|
if (cause != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user