There are some classes that are not covered to 1.17 yet but they are not active and you can play without problem. If thats not the issue, I don't know how I can make it work
I have found the line that returns null.
BlockState blockstate1 = blockstate.updateShape(direction.getOpposite(), this.asState(), p_60706_, blockpos$mutableblockpos, p_60707_);