summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityTurtle.patch
blob: cf12bb06a0b1160bc0153d23702e45b9aea4f0f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/net/minecraft/server/EntityTurtle.java
+++ b/net/minecraft/server/EntityTurtle.java
@@ -260,7 +260,9 @@
     }
 
     public void onLightningStrike(EntityLightning entitylightning) {
+        org.bukkit.craftbukkit.event.CraftEventFactory.entityDamage = entitylightning; // CraftBukkit
         this.damageEntity(DamageSource.LIGHTNING, Float.MAX_VALUE);
+        org.bukkit.craftbukkit.event.CraftEventFactory.entityDamage = null; // CraftBukkit
     }
 
     public void die(DamageSource damagesource) {