Change the Petal Apothecary to not remove water from buckets in creative.

This commit is contained in:
Vasco Lavos committed 2014-02-08 19:24:30 +00:00
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);
}