1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2026-04-23 15:31: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

View File

@@ -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