summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityEvokerFangs.patch
blob: b90581a8e5b1d508b5c328bc5dfe565f50099915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/net/minecraft/server/EntityEvokerFangs.java
+++ b/net/minecraft/server/EntityEvokerFangs.java
@@ -108,7 +108,9 @@
 
         if (entityliving.isAlive() && !entityliving.bl() && entityliving != entityliving1) {
             if (entityliving1 == null) {
+                org.bukkit.craftbukkit.event.CraftEventFactory.entityDamage = this; // CraftBukkit
                 entityliving.damageEntity(DamageSource.MAGIC, 6.0F);
+                org.bukkit.craftbukkit.event.CraftEventFactory.entityDamage = null; // CraftBukkit
             } else {
                 if (entityliving1.r(entityliving)) {
                     return;