diff --git a/Minecraft.Client/GameState/Options.cpp b/Minecraft.Client/GameState/Options.cpp index 47acf2f26..02d8727f4 100644 --- a/Minecraft.Client/GameState/Options.cpp +++ b/Minecraft.Client/GameState/Options.cpp @@ -279,12 +279,14 @@ void Options::toggle(const Options::Option *option, int dir) if (option == Option::GRAPHICS) { fancyGraphics = !fancyGraphics; - minecraft->levelRenderer->allChanged(); + // 4jcraft: ensure level exists before applying + if(minecraft->level) minecraft->levelRenderer->allChanged(); } if (option == Option::AMBIENT_OCCLUSION) { ambientOcclusion = !ambientOcclusion; - minecraft->levelRenderer->allChanged(); + // 4jcraft: ensure level exists before applying + if(minecraft->level) minecraft->levelRenderer->allChanged(); } // 4J-PB - don't do the file save on the xbox