mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-02-16 18:05:58 +00:00
12 lines
742 B
Diff
12 lines
742 B
Diff
--- a/net/minecraft/world/item/enchantment/effects/ApplyMobEffect.java
|
|
+++ b/net/minecraft/world/item/enchantment/effects/ApplyMobEffect.java
|
|
@@ -34,7 +34,7 @@
|
|
int j = Math.round(MathHelper.randomBetween(randomsource, this.minDuration.calculate(i), this.maxDuration.calculate(i)) * 20.0F);
|
|
int k = Math.max(0, Math.round(MathHelper.randomBetween(randomsource, this.minAmplifier.calculate(i), this.maxAmplifier.calculate(i))));
|
|
|
|
- entityliving.addEffect(new MobEffect((Holder) optional.get(), j, k));
|
|
+ entityliving.addEffect(new MobEffect((Holder) optional.get(), j, k), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
|
}
|
|
}
|
|
|