mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-28 19:25:58 +00:00
fix: add level null check to advanced opengl toggle
This commit is contained in:
@@ -260,7 +260,8 @@ void Options::toggle(const Options::Option *option, int dir)
|
||||
if (option == Option::ADVANCED_OPENGL)
|
||||
{
|
||||
advancedOpengl = !advancedOpengl;
|
||||
minecraft->levelRenderer->allChanged();
|
||||
// 4jcraft: ensure level exists before applying
|
||||
if(minecraft->level) minecraft->levelRenderer->allChanged();
|
||||
}
|
||||
if (option == Option::ANAGLYPH)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user