2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/projectile/EntityTippedArrow.java
|
|
|
|
+++ b/net/minecraft/world/entity/projectile/EntityTippedArrow.java
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -118,7 +118,7 @@
|
|
|
|
mobeffect = (MobEffect) iterator.next();
|
|
|
|
entityliving.addEffect(new MobEffect(mobeffect.getEffect(), Math.max(mobeffect.mapDuration((i) -> {
|
|
|
|
return i / 8;
|
|
|
|
- }), 1), mobeffect.getAmplifier(), mobeffect.isAmbient(), mobeffect.isVisible()), entity);
|
|
|
|
+ }), 1), mobeffect.getAmplifier(), mobeffect.isAmbient(), mobeffect.isVisible()), entity, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ARROW); // CraftBukkit
|
|
|
|
}
|
2018-07-20 08:04:37 +02:00
|
|
|
}
|
|
|
|
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -126,7 +126,7 @@
|
2018-07-20 08:04:37 +02:00
|
|
|
|
2024-04-23 17:15:00 +02:00
|
|
|
while (iterator.hasNext()) {
|
|
|
|
mobeffect = (MobEffect) iterator.next();
|
|
|
|
- entityliving.addEffect(mobeffect, entity);
|
|
|
|
+ entityliving.addEffect(mobeffect, entity, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ARROW); // CraftBukkit
|
2018-07-20 08:04:37 +02:00
|
|
|
}
|
|
|
|
|
2024-04-23 17:15:00 +02:00
|
|
|
}
|