mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-4101: Turtle lightning strike causing crash
By: md_5 <git@md-5.net>
This commit is contained in:
parent
5bc15c40d8
commit
d9cf61f1a8
1 changed files with 12 additions and 0 deletions
12
paper-server/nms-patches/EntityTurtle.patch
Normal file
12
paper-server/nms-patches/EntityTurtle.patch
Normal file
|
@ -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) {
|
Loading…
Add table
Reference in a new issue