summaryrefslogtreecommitdiffstats
path: root/nms-patches/ItemPotion.patch
blob: c1277da3250bc5fcc78bddb647e9814bf75fc861 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/ItemPotion.java
+++ b/net/minecraft/server/ItemPotion.java
@@ -30,7 +30,7 @@
                 if (mobeffect.getMobEffect().isInstant()) {
                     mobeffect.getMobEffect().applyInstantEffect(entityhuman, entityhuman, entityliving, mobeffect.getAmplifier(), 1.0D);
                 } else {
-                    entityliving.addEffect(new MobEffect(mobeffect));
+                    entityliving.addEffect(new MobEffect(mobeffect), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.POTION_DRINK); // CraftBukkit
                 }
             }
         }