Commits

md_5 authored 961295e4327
SPIGOT-4101: Turtle lightning strike causing crash
No tags

nms-patches/EntityTurtle.patch

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

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut