As of 4.24 hit-surface node no longer works on a layered landscape

Anyone found a work around or another method of getting the physical material from a layer painted landscape since 4.24?

Heres the issue to upvote if you would be so kind.