diff options
author | md_5 <git@md-5.net> | 2017-07-08 22:40:54 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-07-08 22:40:54 +1000 |
commit | 50b75cd65dd241a01d160d1a4e31de4e643be36e (patch) | |
tree | 35c55e75080247c9ee9e29c7dc0ed8e0c05605bc /src | |
parent | 14b597f0c8e19ea0f919ab5e1673fe62a50da45f (diff) | |
download | craftbukkit-50b75cd65dd241a01d160d1a4e31de4e643be36e.tar craftbukkit-50b75cd65dd241a01d160d1a4e31de4e643be36e.tar.gz craftbukkit-50b75cd65dd241a01d160d1a4e31de4e643be36e.tar.lz craftbukkit-50b75cd65dd241a01d160d1a4e31de4e643be36e.tar.xz craftbukkit-50b75cd65dd241a01d160d1a4e31de4e643be36e.zip |
SPIGOT-3407: Set damager for evoker fangs
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index be0f46f9..33020b90 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -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)); } |