Fix crash with Cactus render
@@ -158,17 +158,8 @@ public class BlockBranchCactus extends BlockBranch {
}
@Override
- public int getRadius(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos) {
-
- if(blockState == null) {
- blockState = blockAccess.getBlockState(pos);
- }
-
- if (blockState.getBlock() == this) {
+ public int getRawRadius(IBlockState blockState) {
return blockState.getValue(TRUNK) ? 5 : 4;
- } else {
- return 0;
- }
}
@Override
