mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
43702a9e10
By: md_5 <git@md-5.net>
12 lines
630 B
Diff
12 lines
630 B
Diff
--- a/net/minecraft/world/item/enchantment/EnchantmentWeaponDamage.java
|
|
+++ b/net/minecraft/world/item/enchantment/EnchantmentWeaponDamage.java
|
|
@@ -63,7 +63,7 @@
|
|
if (this.type == 2 && i > 0 && entityliving1.getMobType() == EnumMonsterType.ARTHROPOD) {
|
|
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
|
|
}
|
|
}
|
|
|