diff options
Diffstat (limited to 'nms-patches/ItemMilkBucket.patch')
-rw-r--r-- | nms-patches/ItemMilkBucket.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nms-patches/ItemMilkBucket.patch b/nms-patches/ItemMilkBucket.patch new file mode 100644 index 00000000..f147e504 --- /dev/null +++ b/nms-patches/ItemMilkBucket.patch @@ -0,0 +1,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; |