mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
65bc2541a3
By: md_5 <git@md-5.net>
11 lines
680 B
Diff
11 lines
680 B
Diff
--- a/net/minecraft/world/item/enchantment/EnchantmentWeaponDamage.java
|
|
+++ b/net/minecraft/world/item/enchantment/EnchantmentWeaponDamage.java
|
|
@@ -35,7 +35,7 @@
|
|
if (this.targets.get() == TagsEntity.SENSITIVE_TO_BANE_OF_ARTHROPODS && i > 0 && entityliving1.getType().is((TagKey) this.targets.get())) {
|
|
int j = 20 + entityliving.getRandom().nextInt(10 * i);
|
|
|
|
- entityliving1.addEffect(new MobEffect(MobEffects.MOVEMENT_SLOWDOWN, j, 3));
|
|
+ entityliving1.addEffect(new MobEffect(MobEffects.MOVEMENT_SLOWDOWN, j, 3), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
|
}
|
|
}
|
|
|