Fixed Quantum chests and tanks not having a hardness
This commit is contained in:
parent
f4e45916e2
commit
7905573e23
2 changed files with 4 additions and 4 deletions
|
@ -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_)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue