mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-21 12:24:22 +01:00
Offset alfalfa hitboxes for consistency with tomato plants
This commit is contained in:
parent
ff7e033db1
commit
854956f37f
1 changed files with 2 additions and 1 deletions
|
@ -214,9 +214,10 @@ public class BlockAlfalfa extends BlockCrops {
|
||||||
return getHalf(state) != Half.MIDDLE;
|
return getHalf(state) != Half.MIDDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue