mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-13 11:40:29 +00:00
Merge pull request #418 from Wojbie/settings-save-fix
Fix settings.save() sPath param.
This commit is contained in:
commit
544f276ff0
@ -228,7 +228,7 @@ end
|
||||
-- @see settings.load
|
||||
function save(sPath)
|
||||
expect(1, sPath, "string", "nil")
|
||||
local file = fs.open(".settings", "w")
|
||||
local file = fs.open(sPath or ".settings", "w")
|
||||
if not file then
|
||||
return false
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user