mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 00:37:57 +00:00
Merge branch 'master' of https://github.com/Vazkii/Botania
This commit is contained in:
commit
2c0ba882b5
2 files changed
+9
No files matched your search
@@ -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