SPIGOT-3407: Set damager for evoker fangs

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2017-07-08 22:40:54 +10:00
parent 0353512d03
commit e626522be7
2 changed files with 14 additions and 0 deletions

View File

@@ -520,6 +520,8 @@ public class CraftEventFactory {
cause = DamageCause.FALL;
} else if (source == DamageSource.DRAGON_BREATH) {
cause = DamageCause.DRAGON_BREATH;
} else if (source == DamageSource.MAGIC) {
cause = DamageCause.MAGIC;
} else {
throw new IllegalStateException(String.format("Unhandled damage of %s by %s from %s", entity, damager.getHandle(), source.translationIndex));
}