Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 20:40:07 +01:00
13 Zeilen
512 B
Diff
13 Zeilen
512 B
Diff
--- 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) {
|