SPIGOT-4101: Turtle lightning strike causing crash
Dieser Commit ist enthalten in:
Ursprung
e5d6f6b596
Commit
961295e432
12
nms-patches/EntityTurtle.patch
Normale Datei
12
nms-patches/EntityTurtle.patch
Normale Datei
@ -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) {
|
In neuem Issue referenzieren
Einen Benutzer sperren