2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/projectile/EntityEvokerFangs.java
|
|
|
|
+++ b/net/minecraft/world/entity/projectile/EntityEvokerFangs.java
|
2024-06-13 17:05:00 +02:00
|
|
|
@@ -17,6 +17,10 @@
|
|
|
|
import net.minecraft.world.item.enchantment.EnchantmentManager;
|
2024-02-21 10:55:34 +01:00
|
|
|
import net.minecraft.world.level.World;
|
|
|
|
|
|
|
|
+// CraftBukkit start
|
|
|
|
+import org.bukkit.event.entity.EntityRemoveEvent;
|
|
|
|
+// CraftBukkit end
|
|
|
|
+
|
|
|
|
public class EntityEvokerFangs extends Entity implements TraceableEntity {
|
|
|
|
|
|
|
|
public static final int ATTACK_DURATION = 20;
|
2024-06-13 17:05:00 +02:00
|
|
|
@@ -121,7 +125,7 @@
|
2024-02-21 10:55:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (--this.lifeTicks < 0) {
|
|
|
|
- this.discard();
|
|
|
|
+ this.discard(EntityRemoveEvent.Cause.DESPAWN); // CraftBukkit - add Bukkit remove cause
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-13 17:05:00 +02:00
|
|
|
@@ -132,7 +136,7 @@
|
2017-07-08 14:40:54 +02:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
if (entityliving.isAlive() && !entityliving.isInvulnerable() && entityliving != entityliving1) {
|
2017-07-08 14:40:54 +02:00
|
|
|
if (entityliving1 == null) {
|
2024-02-10 23:54:25 +01:00
|
|
|
- entityliving.hurt(this.damageSources().magic(), 6.0F);
|
2024-05-04 00:15:51 +02:00
|
|
|
+ entityliving.hurt(this.damageSources().magic().customEntityDamager(this), 6.0F); // CraftBukkit
|
2017-07-08 14:40:54 +02:00
|
|
|
} else {
|
2021-11-21 23:00:00 +01:00
|
|
|
if (entityliving1.isAlliedTo((Entity) entityliving)) {
|
2017-07-08 14:40:54 +02:00
|
|
|
return;
|