mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +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)
|
if (option == Option::ADVANCED_OPENGL)
|
||||||
{
|
{
|
||||||
advancedOpengl = !advancedOpengl;
|
advancedOpengl = !advancedOpengl;
|
||||||
minecraft->levelRenderer->allChanged();
|
// 4jcraft: ensure level exists before applying
|
||||||
|
if(minecraft->level) minecraft->levelRenderer->allChanged();
|
||||||
}
|
}
|
||||||
if (option == Option::ANAGLYPH)
|
if (option == Option::ANAGLYPH)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue