Posted June 10, 20196 yr So I'm trying to include a config-file in my 1.13.2 mod. And I've added a boolean in my config to regulate if an ore should be generated or not. Now I've got a problem with that because i get an java.lang.NullPointerException: Cannot get config value without assigned Config object present when testing on those boolean values. The error come up on the OreGeneration.java in the if-statements in setupOreGen() Does anybody have an idea why that happens or could someone have a look in my code? Thanks in advantage:) Here's the link to my GitHub: https://github.com/jonas69/Versio
June 11, 20196 yr Don’t do this https://github.com/jonas69/Versio/blob/fc9a39ae05de22d813642369f1dec9f1db86b748/src/main/java/com/versio/Versio.java#L72-L76 https://github.com/jonas69/Versio/blob/fc9a39ae05de22d813642369f1dec9f1db86b748/src/main/java/com/versio/Versio.java#L88 You probably want your event bus registered before the client setup event. Also, there is no reason to be using an instance event subscriber here, use a static one. Do not do any of this https://github.com/jonas69/Versio/blob/fc9a39ae05de22d813642369f1dec9f1db86b748/src/main/java/com/versio/config/Config.java#L26-L34 Here’s an example of a config https://github.com/Cadiboo/Example-Mod/commit/43db50e176d758ade2338764d7e2fe1b63aae7dd About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
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.