Apply V2.2 patch

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-04-28 22:28:56 +07:00
parent dbbc73546c
commit 776e6ec87e
6 changed files with 74 additions and 44 deletions

View File

@@ -7,6 +7,7 @@ local _defaultSettings = {
fullscreen = false,
music = true,
lines = true,
---@class input
---@field keys table <string, string>
@@ -22,8 +23,7 @@ SETTINGS = setmetatable(
{},
{
__index = function(_, k)
if _settings[k] == nil then _settings[k] = _defaultSettings[k] end
return _settings[k]
return _settings[k] == nil and _defaultSettings[k] or _settings[k]
end,
__newindex = function(_, k, v)
_settings[k] = v