From 961295e4327324766a0404857c1ca85051971995 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 21 Jul 2018 14:55:07 +1000 Subject: [PATCH] SPIGOT-4101: Turtle lightning strike causing crash --- nms-patches/EntityTurtle.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 nms-patches/EntityTurtle.patch diff --git a/nms-patches/EntityTurtle.patch b/nms-patches/EntityTurtle.patch new file mode 100644 index 0000000000..cf12bb06a0 --- /dev/null +++ b/nms-patches/EntityTurtle.patch @@ -0,0 +1,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) {