mirror of
https://github.com/GTNewHorizons/IguanaTweaksTConstruct.git
synced 2026-10-26 14:24:06 +00:00
Fix clay milk bucket not clearing effects (#41)
This commit is contained in:
1 parent
87a790cefb
commit
2bc09889d3
1 file changed
+2
-1
+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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user