mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 00:37:57 +00:00
Update BlockAltar.java
Added ability to remove water from the alter by clicking on it with an empty bucket.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user