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);
|
super(Material.rock);
|
||||||
setBlockName("techreborn.quantumChest");
|
setBlockName("techreborn.quantumChest");
|
||||||
setCreativeTab(TechRebornCreativeTab.instance);
|
setCreativeTab(TechRebornCreativeTab.instance);
|
||||||
|
setHardness(2.0F);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_)
|
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_)
|
||||||
|
|
|
@ -23,6 +23,7 @@ public class BlockQuantumTank extends BlockMachineBase {
|
||||||
{
|
{
|
||||||
super(Material.rock);
|
super(Material.rock);
|
||||||
setBlockName("techreborn.quantumTank");
|
setBlockName("techreborn.quantumTank");
|
||||||
|
setHardness(2.0F);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -32,12 +33,10 @@ public class BlockQuantumTank extends BlockMachineBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onBlockActivated(World world, int x, int y, int z,
|
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
|
||||||
EntityPlayer player, int side, float hitX, float hitY, float hitZ)
|
|
||||||
{
|
{
|
||||||
if (!player.isSneaking())
|
if (!player.isSneaking())
|
||||||
player.openGui(Core.INSTANCE, GuiHandler.quantumTankID, world, x,
|
player.openGui(Core.INSTANCE, GuiHandler.quantumTankID, world, x, y, z);
|
||||||
y, z);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue