1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-27 20:07:39 +00:00

Make cable collision boxes more accurate for cables

Each cable segment is added to the list, meaning you can get close and
snugly with the cables.
This commit is contained in:
SquidDev
2017-05-06 23:45:15 +01:00
parent d87b0e9435
commit f34a319b79
3 changed files with 42 additions and 38 deletions

View File

@@ -218,6 +218,12 @@ public abstract class BlockGeneric extends Block implements
return FULL_BLOCK_AABB;
}
@Override
public AxisAlignedBB getSelectedBoundingBox( IBlockState state, World worldIn, BlockPos pos )
{
return getBoundingBox( state, worldIn, pos ).offset( pos );
}
@Override
public final AxisAlignedBB getCollisionBoundingBox( IBlockState state, World world, BlockPos pos )
{