2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/entity/projectile/EntityTippedArrow.java
|
|
|
|
+++ b/net/minecraft/world/entity/projectile/EntityTippedArrow.java
|
2023-12-06 03:40:00 +11:00
|
|
|
@@ -213,7 +213,7 @@
|
2018-07-20 16:04:37 +10:00
|
|
|
mobeffect = (MobEffect) iterator.next();
|
2023-03-15 03:30:00 +11:00
|
|
|
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 16:04:37 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.effects.isEmpty()) {
|
2023-12-06 03:40:00 +11:00
|
|
|
@@ -221,7 +221,7 @@
|
2018-07-20 16:04:37 +10:00
|
|
|
|
|
|
|
while (iterator.hasNext()) {
|
|
|
|
mobeffect = (MobEffect) iterator.next();
|
2021-06-11 15:00:00 +10:00
|
|
|
- entityliving.addEffect(mobeffect, entity);
|
|
|
|
+ entityliving.addEffect(mobeffect, entity, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ARROW); // CraftBukkit
|
2018-07-20 16:04:37 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|