mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-11 18:47:03 +00:00
Merge pull request #221 from realffqq/feat/restore-java-gui
(java gui) fix: add level null check to advanced opengl toggle
This commit is contained in:
commit
60cfc17d20
|
|
@ -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