Offset alfalfa hitboxes for consistency with tomato plants

This commit is contained in:
Sollace 2019-01-10 10:24:19 +02:00
parent ff7e033db1
commit 854956f37f

View file

@ -214,9 +214,10 @@ public class BlockAlfalfa extends BlockCrops {
return getHalf(state) != Half.MIDDLE;
}
@Deprecated
@Override
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
return BOUNDS[Math.min(BOUNDS.length - 1, getFullAge(source, pos))];
return BOUNDS[Math.min(BOUNDS.length - 1, getFullAge(source, pos))].offset(getOffset(state, source, pos));
}
@Override