Fixing normals after doing animated water with displacement?

So I made a material with basic gerstner waves and it’s all plugged into the world displacement output of the material. As you can see, despite the wireframe showing that the material is animating correctly, the normals are messed up and look unchanged from when it’s a flat plane?

I would greatly appreciate if someone could point me in the right direction towards fixing this issue with my material?

So I figured out the solution to the issue, here’s a screenshot of the graph. I’m also including all the code saved into a text file! you can just copy and paste that files contents into a material so hopefully that helps anyone else dealing with this issue!