mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Merge branch 'development' into 1.8.9
This commit is contained in:
commit
5825c84fad
11 files changed
+46
-47
No files matched your search
@@ -113,13 +113,13 @@ public class BlockBounding extends Block
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getBlockHardness(World world, BlockPos pos)
|
||||
public float getPlayerRelativeBlockHardness(EntityPlayer player, World world, BlockPos pos)
|
||||
{
|
||||
try {
|
||||
TileEntityBoundingBlock tileEntity = (TileEntityBoundingBlock)world.getTileEntity(pos);
|
||||
return world.getBlockState(tileEntity.mainPos).getBlock().getBlockHardness(world, tileEntity.mainPos);
|
||||
return world.getBlockState(tileEntity.mainPos).getBlock().getPlayerRelativeBlockHardness(player, world, tileEntity.mainPos);
|
||||
} catch(Exception e) {
|
||||
return blockHardness;
|
||||
return super.getPlayerRelativeBlockHardness(player, world, pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user