mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 17:07:34 +01:00
21 lines
1.0 KiB
Diff
21 lines
1.0 KiB
Diff
--- a/net/minecraft/server/EntityPufferFish.java
|
|
+++ b/net/minecraft/server/EntityPufferFish.java
|
|
@@ -114,7 +114,7 @@
|
|
int i = this.getPuffState();
|
|
|
|
if (entityinsentient.damageEntity(DamageSource.mobAttack(this), (float) (1 + i))) {
|
|
- entityinsentient.addEffect(new MobEffect(MobEffects.POISON, 60 * i, 0));
|
|
+ entityinsentient.addEffect(new MobEffect(MobEffects.POISON, 60 * i, 0), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
|
this.playSound(SoundEffects.ENTITY_PUFFER_FISH_STING, 1.0F, 1.0F);
|
|
}
|
|
|
|
@@ -129,7 +129,7 @@
|
|
((EntityPlayer) entityhuman).playerConnection.sendPacket(new PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.j, 0.0F));
|
|
}
|
|
|
|
- entityhuman.addEffect(new MobEffect(MobEffects.POISON, 60 * i, 0));
|
|
+ entityhuman.addEffect(new MobEffect(MobEffects.POISON, 60 * i, 0), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
|
}
|
|
|
|
}
|