summaryrefslogtreecommitdiffstats
path: root/nms-patches/ItemMilkBucket.patch
blob: f147e504e4b7a255c472156a640086a42064d844 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/ItemMilkBucket.java
+++ b/net/minecraft/server/ItemMilkBucket.java
@@ -19,7 +19,7 @@
         }
 
         if (!world.isClientSide) {
-            entityliving.removeAllEffects();
+            entityliving.removeAllEffects(org.bukkit.event.entity.EntityPotionEffectEvent.Cause.MILK); // CraftBukkit
         }
 
         return itemstack.isEmpty() ? new ItemStack(Items.BUCKET) : itemstack;