iLexiconn/JurassiCraft — pull request #34 by NotGyro (2014-07-15 21:35:19+00:00)
Title: Quick, hacky fix to the NPE

This will fix the Null Pointer Error caused when spawning a dinosaur in 1.7.10 - however, it might not be ideal, depending on how you guys want to structure your project. The problem was that the AnimationAPI class' init() and postInit() methods were not getting called anywhere, and so PacketPipeline.initialize() was not getting called, and so PacketPipeline.channels remained a null pointer.

To solve this, I registered AnimationAPI as a mod to ensure that the init() and postInit() methods get called. However, if you didn't want AnimationAPI to be detected as a separate mod, this won't be ideal and you'll have to find some other way to initialize the PacketPipeline.