Fixed Quantum chests and tanks not having a hardness

This commit is contained in:
gigabit101 2015-08-04 20:50:58 +01:00
parent f4e45916e2
commit 7905573e23
2 changed files with 4 additions and 4 deletions

View file

@ -34,6 +34,7 @@ public class BlockQuantumChest extends BlockContainer {
super(Material.rock);
setBlockName("techreborn.quantumChest");
setCreativeTab(TechRebornCreativeTab.instance);
setHardness(2.0F);
}
@Override
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_)

View file

@ -23,6 +23,7 @@ public class BlockQuantumTank extends BlockMachineBase {
{
super(Material.rock);
setBlockName("techreborn.quantumTank");
setHardness(2.0F);
}
@Override
@ -32,12 +33,10 @@ public class BlockQuantumTank extends BlockMachineBase {
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z,
EntityPlayer player, int side, float hitX, float hitY, float hitZ)
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
{
if (!player.isSneaking())
player.openGui(Core.INSTANCE, GuiHandler.quantumTankID, world, x,
y, z);
player.openGui(Core.INSTANCE, GuiHandler.quantumTankID, world, x, y, z);
return true;
}