diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/PotionItem.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/PotionItem.java.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/PotionItem.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/PotionItem.java.patch new file mode 100644 index 0000000000..efd70f391c --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/PotionItem.java.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/world/item/PotionItem.java ++++ b/net/minecraft/world/item/PotionItem.java +@@ -62,7 +60,7 @@ + if (mobeffectinstance.getEffect().isInstantenous()) { + mobeffectinstance.getEffect().applyInstantenousEffect(player, player, livingentity, mobeffectinstance.getAmplifier(), 1.0D); + } else { +- livingentity.addEffect(new MobEffectInstance(mobeffectinstance)); ++ entityLiving.addEffect(new MobEffectInstance(mobeffect), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.POTION_DRINK); // CraftBukkit + } + } + } |