#1059: Add DamageCause.SONIC_BOOM

This commit is contained in:
Doc 2022-06-09 21:04:03 +10:00 committed by md_5
parent 50ef122ef8
commit 4b60bfd18d
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -885,6 +885,8 @@ public class CraftEventFactory {
}
} else if ("thorns".equals(source.msgId)) {
cause = DamageCause.THORNS;
} else if ("sonic_boom".equals(source.msgId)) {
cause = DamageCause.SONIC_BOOM;
}
return callEntityDamageEvent(damager, entity, cause, modifiers, modifierFunctions, cancelled);