From dfedef8152ad054b727bd5b74ef949cb999909af Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Thu, 6 Nov 2014 14:45:35 +0000 Subject: [PATCH] Fixed the Brewery breaking instantly. Added added the proper block texture for breaking. Closes #359. --- MODSRC/vazkii/botania/common/block/BlockBrewery.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MODSRC/vazkii/botania/common/block/BlockBrewery.java b/MODSRC/vazkii/botania/common/block/BlockBrewery.java index e632b2dd4..e58d6c4f7 100644 --- a/MODSRC/vazkii/botania/common/block/BlockBrewery.java +++ b/MODSRC/vazkii/botania/common/block/BlockBrewery.java @@ -18,9 +18,11 @@ import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.IIcon; import net.minecraft.world.World; import vazkii.botania.api.lexicon.ILexiconable; import vazkii.botania.api.lexicon.LexiconEntry; @@ -40,10 +42,18 @@ public class BlockBrewery extends BlockModContainer implements ILexiconable { float f = 6F / 16F; setBlockBounds(f, 0.05F, f, 1F - f, 0.95F, 1F - f); setBlockName(LibBlockNames.BREWERY); + setHardness(2.0F); + setResistance(10.0F); + setStepSound(soundTypeStone); random = new Random(); } + @Override + public IIcon getIcon(int side, int meta) { + return Blocks.cobblestone.getIcon(side, meta); + } + @Override public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { TileBrewery brew = (TileBrewery) par1World.getTileEntity(par2, par3, par4);