mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 15:03:03 +00:00
Change the Petal Apothecary to not remove water from buckets in creative.
This commit is contained in:
1 parent
bdcc8ff3ff
commit
9264374443
1 file changed
+2
-1
@@ -65,7 +65,8 @@ public class BlockAltar extends BlockModContainer implements ILexiconable {
|
||||
TileAltar tile = (TileAltar) par1World.getBlockTileEntity(par2, par3, par4);
|
||||
if(stack != null && stack.itemID == Item.bucketWater.itemID) {
|
||||
if(!tile.hasWater) {
|
||||
par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, new ItemStack(Item.bucketEmpty));
|
||||
if(!par5EntityPlayer.capabilities.isCreativeMode)
|
||||
par5EntityPlayer.inventory.setInventorySlotContents(par5EntityPlayer.inventory.currentItem, new ItemStack(Item.bucketEmpty));
|
||||
tile.hasWater = true;
|
||||
PacketDispatcher.sendPacketToAllInDimension(tile.getDescriptionPacket(), par1World.provider.dimensionId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user