From 58b02d6bf1971958d63c265d7916aeebec14ee40 Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Sun, 22 Mar 2015 19:01:06 +0000 Subject: [PATCH] Fixed a bucket dupe in the petal apothecary. Closes #669 --- .../java/vazkii/botania/common/block/BlockAltar.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/vazkii/botania/common/block/BlockAltar.java b/src/main/java/vazkii/botania/common/block/BlockAltar.java index 2502a0912..0eb42e51c 100644 --- a/src/main/java/vazkii/botania/common/block/BlockAltar.java +++ b/src/main/java/vazkii/botania/common/block/BlockAltar.java @@ -112,9 +112,12 @@ public class BlockAltar extends BlockModContainer implements ILexiconable { ItemStack bucket = tile.hasLava ? new ItemStack(Items.lava_bucket) : new ItemStack(Items.water_bucket); if(stack.stackSize == 1) par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, bucket); - else if(!par5EntityPlayer.inventory.addItemStackToInventory(bucket)) - par5EntityPlayer.dropPlayerItemWithRandomChoice(bucket, false); - + else { + if(!par5EntityPlayer.inventory.addItemStackToInventory(bucket)) + par5EntityPlayer.dropPlayerItemWithRandomChoice(bucket, false); + stack.stackSize--; + } + if(tile.hasLava) tile.setLava(false); else tile.setWater(false);