Fix clay milk bucket not clearing effects (#41)

This commit is contained in:
Mykhailo Balaker authored and GitHub committed 2026-07-26 22:47:57 +07:00
1 parent 87a790cefb
commit 2bc09889d3
1 file changed
+2 -1
@@ -20,7 +20,8 @@ public class ClayBucketMilk extends ItemBucketMilk {
@Override
public ItemStack onEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
ItemStack result = super.onEaten(par1ItemStack, par2World, par3EntityPlayer);
ItemStack vanillaMilkStack = new ItemStack(Items.milk_bucket);
ItemStack result = super.onEaten(vanillaMilkStack, par2World, par3EntityPlayer);
if (result.getItem() == Items.bucket) return new ItemStack(IguanaItems.clayBucketFired);
return result;
}