Fixed crash when one thick branch is on top of another
@@ -27,6 +27,7 @@ import net.minecraft.util.math.MathHelper;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.property.ExtendedBlockState;
+import net.minecraftforge.common.property.IExtendedBlockState;
import net.minecraftforge.common.property.IUnlistedProperty;
public class BlockBranchThick extends BlockBranchBasic implements IMusable {
@@ -181,6 +182,11 @@ public class BlockBranchThick extends BlockBranchBasic implements IMusable {
}
+ @Override
+ public int getRadiusForConnection(IBlockState blockState, IBlockAccess world, BlockPos pos, BlockBranch from, EnumFacing side, int fromRadius) {
+ return Math.min(getRadius(blockState), RADMAX_NORMAL);
+ }
+
public ReplaceableState getReplaceability(World world, BlockPos pos) {
IBlockState state = world.getBlockState(pos);
