aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/Arrow.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/Arrow.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/Arrow.java.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/Arrow.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/Arrow.java.patch
new file mode 100644
index 0000000000..19236dddac
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/Arrow.java.patch
@@ -0,0 +1,21 @@
+--- a/net/minecraft/world/entity/projectile/Arrow.java
++++ b/net/minecraft/world/entity/projectile/Arrow.java
+@@ -218,15 +213,15 @@
+ mobeffectinstance = (MobEffectInstance) iterator.next();
+ livingentity.addEffect(new MobEffectInstance(mobeffectinstance.getEffect(), Math.max(mobeffectinstance.mapDuration((i) -> {
+ return i / 8;
+- }), 1), mobeffectinstance.getAmplifier(), mobeffectinstance.isAmbient(), mobeffectinstance.isVisible()), entity);
++ }), 1), mobeffect.getAmplifier(), mobeffect.isAmbient(), mobeffect.isVisible()), entity, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ARROW); // CraftBukkit
+ }
+
+ if (!this.effects.isEmpty()) {
+ iterator = this.effects.iterator();
+
+ while (iterator.hasNext()) {
+- mobeffectinstance = (MobEffectInstance) iterator.next();
+- livingentity.addEffect(mobeffectinstance, entity);
++ mobeffect = (MobEffectInstance) iterator.next();
++ living.addEffect(mobeffect, entity, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ARROW); // CraftBukkit
+ }
+ }
+