Update BlockAltar.java

Added ability to remove water from the alter by clicking on it with an empty bucket.
This commit is contained in:
gr8pefish committed 2015-02-17 15:32:05 -07:00
1 parent 482f652c95
commit 2d1be7a2d5
1 file changed
+9
@@ -106,6 +106,15 @@ public class BlockAltar extends BlockModContainer implements ILexiconable {
tile.setLava(true);
par1World.func_147453_f(par2, par3, par4, this);
return true;
} else if(stack != null && stack.getItem() == Items.bucket) {
if (!par5EntityPlayer.capabilities.isCreativeMode)
par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, getContainer(stack));
else
par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, new ItemStack(Items.water_bucket));
tile.setWater(false);
par1World.func_147453_f(par2, par3, par4, this);
return true;
}
}