Posted February 22, 201510 yr Hello everyone. I'm having a really strange issue at the moment. I'm currently using 1.8-Forge11.14.0.1299 (1.8 Recommended). I have the client installed and I have the source package to develop mods. Now for a mod I'm currently working on, I have to access the "gameSettings" field in the Minecraft class. It works fine in the development environment, but as soon as I compile/build the mod and put it into my mods folder in my client installation the game crashes. The log indicates that the gameSettings field in the Minecraft class is not existant. Problem is that this doesn't make any sense at all. The source package and the client installation are both the same version. It works fine in the development environment, but fails when its expected to work. Those are the lines which appear to be "wrong": Minecraft mc = FMLClientHandler.instance().getClient(); KeyBinding[] internalKeybindings = mc.gameSettings.keyBindings; KeyBinding targetKeybinding = mc.gameSettings.keyBindScreenshot; If further information is needed then tell me and I'll add it as soon as possible.
February 22, 201510 yr Thats because 'gameSettings' doesn't exist. 'field_71474_y' does. Dont 'export jar' from your IDE. Run gradlew build. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
February 22, 201510 yr Author Thats because 'gameSettings' doesn't exist. 'field_71474_y' does. Dont 'export jar' from your IDE. Run gradlew build. That's exactly what I did. I wouldn't have started this thread if I didn't do everything according to the wiki.
February 22, 201510 yr Author Okay. I'm terribly stupid. I accidentally skipped a line in the tutorial on how to compile a modification. Sorry to everyone I've stolen time from.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.