From d87b0e9435288d2ca831b5c83af7364512291b9b Mon Sep 17 00:00:00 2001 From: SquidDev Date: Fri, 5 May 2017 15:24:53 +0100 Subject: [PATCH] Fix selection boxes not being shown getSelectedBoundingBox expects a bounding box relative to (0, 0, 0) but we were returning one relative to the current block. Instead we allow the default behaviour to continue, which will call getBoundingBox and offset it. --- .../dan200/computercraft/shared/common/BlockGeneric.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/dan200/computercraft/shared/common/BlockGeneric.java b/src/main/java/dan200/computercraft/shared/common/BlockGeneric.java index 560c40dea..fc2316cb5 100644 --- a/src/main/java/dan200/computercraft/shared/common/BlockGeneric.java +++ b/src/main/java/dan200/computercraft/shared/common/BlockGeneric.java @@ -218,12 +218,6 @@ public final AxisAlignedBB getBoundingBox( IBlockState state, IBlockAccess world return FULL_BLOCK_AABB; } - @Override - public final AxisAlignedBB getSelectedBoundingBox( IBlockState state, World world, BlockPos pos ) - { - return getBoundingBox( state, world, pos ); - } - @Override public final AxisAlignedBB getCollisionBoundingBox( IBlockState state, World world, BlockPos pos ) {