mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-26 22:27:47 +00:00
save file nullcheck
This commit is contained in:
parent
086e0e3ae4
commit
36ab5d441c
|
|
@ -15,7 +15,7 @@ class Preferences
|
|||
|
||||
static function get_naughtyness():Bool
|
||||
{
|
||||
return Save.instance.options.naughtyness;
|
||||
return Save?.instance?.options?.naughtyness;
|
||||
}
|
||||
|
||||
static function set_naughtyness(value:Bool):Bool
|
||||
|
|
@ -34,7 +34,7 @@ class Preferences
|
|||
|
||||
static function get_downscroll():Bool
|
||||
{
|
||||
return Save.instance.options.downscroll;
|
||||
return Save?.instance?.options?.downscroll;
|
||||
}
|
||||
|
||||
static function set_downscroll(value:Bool):Bool
|
||||
|
|
@ -91,7 +91,7 @@ class Preferences
|
|||
|
||||
static function get_debugDisplay():Bool
|
||||
{
|
||||
return Save.instance.options.debugDisplay;
|
||||
return Save?.instance?.options?.debugDisplay;
|
||||
}
|
||||
|
||||
static function set_debugDisplay(value:Bool):Bool
|
||||
|
|
|
|||
Loading…
Reference in a new issue