I am having the same issue as the OP, and I just tried this solution (because I'm an idiot and also didn't give it @SubscribeEvent) but it still threw the same error at me.
Pastebin: https://pastebin.com/ULWzt248
Repository: https://github.com/Extore/MyMod