2018-07-20 08:04:37 +02:00
|
|
|
--- a/net/minecraft/server/EntityPufferFish.java
|
|
|
|
+++ b/net/minecraft/server/EntityPufferFish.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -114,7 +114,7 @@
|
2018-07-20 08:04:37 +02:00
|
|
|
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
|
2020-06-25 02:00:00 +02:00
|
|
|
this.playSound(SoundEffects.ENTITY_PUFFER_FISH_STING, 1.0F, 1.0F);
|
2018-07-20 08:04:37 +02:00
|
|
|
}
|
|
|
|
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -129,7 +129,7 @@
|
|
|
|
((EntityPlayer) entityhuman).playerConnection.sendPacket(new PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.j, 0.0F));
|
|
|
|
}
|
2018-07-20 08:04:37 +02:00
|
|
|
|
|
|
|
- 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
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|