1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-26 07:03:22 +00:00

Merge pull request #418 from Wojbie/settings-save-fix

Fix settings.save() sPath param.
This commit is contained in:
Jonathan Coates 2020-04-21 17:52:10 +01:00 committed by GitHub
commit 544f276ff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,7 +228,7 @@ end
-- @see settings.load -- @see settings.load
function save(sPath) function save(sPath)
expect(1, sPath, "string", "nil") expect(1, sPath, "string", "nil")
local file = fs.open(".settings", "w") local file = fs.open(sPath or ".settings", "w")
if not file then if not file then
return false return false
end end