Basically, calling oc.player in the GLFWScrollCallback when we are in the menuscreen causes the game to crash because of a NullPointerException caused because the player wasn't created at the moment.
I added null checkings before executing the thing. It should work now.
Basically, calling
oc.player
in theGLFWScrollCallback
when we are in the menuscreen causes the game to crash because of aNullPointerException
caused because the player wasn't created at the moment.I added null checkings before executing the thing. It should work now.