aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/animal/Pufferfish.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/animal/Pufferfish.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/animal/Pufferfish.java.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/animal/Pufferfish.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/animal/Pufferfish.java.patch
new file mode 100644
index 0000000000..3f402b8d8c
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/animal/Pufferfish.java.patch
@@ -0,0 +1,20 @@
+--- a/net/minecraft/world/entity/animal/Pufferfish.java
++++ b/net/minecraft/world/entity/animal/Pufferfish.java
+@@ -152,7 +144,7 @@
+ int i = this.getPuffState();
+
+ if (mob.hurt(this.damageSources().mobAttack(this), (float) (1 + i))) {
+- mob.addEffect(new MobEffectInstance(MobEffects.POISON, 60 * i, 0), this);
++ mob.addEffect(new MobEffectInstance(MobEffects.POISON, 60 * i, 0), this, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
+ this.playSound(SoundEvents.PUFFER_FISH_STING, 1.0F, 1.0F);
+ }
+
+@@ -168,7 +159,7 @@
+ ((ServerPlayer) player).connection.send(new ClientboundGameEventPacket(ClientboundGameEventPacket.PUFFER_FISH_STING, 0.0F));
+ }
+
+- player.addEffect(new MobEffectInstance(MobEffects.POISON, 60 * i, 0), this);
++ entity.addEffect(new MobEffectInstance(MobEffects.POISON, 60 * i, 0), this, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
+ }
+
+ }