Here is a version for 4.12. It is currently compatible with 4.13 also and will remain so unless we change anything.
If you diff this with the original 4.12 file, you can see that all that’s changed is the stuff between
#if NUM_MATERIAL_OUTPUTS_GETGRASSWEIGHT > 10
and
#endif // NUM_MATERIAL_OUTPUTS_GETGRASSWEIGHT > 14
Just copy/pasting of that part of the shader before the default: line should allow you to modify any version.