mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Fixed a bucket dupe in the petal apothecary. Closes #669
This commit is contained in:
1 parent
7cd5549c5c
commit
58b02d6bf1
1 file changed
+6
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user