mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-27 07:23:37 +00:00
fix: add level null check to advanced opengl toggle
This commit is contained in:
parent
604a9b103e
commit
bb668d136a
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue