1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-09-28 15:08:47 +00:00

Merge pull request #486 from Wilma456/extensionfix

Fix Bug in Paint and Edit
This commit is contained in:
Daniel Ratcliffe 2018-01-12 13:59:15 +00:00 committed by GitHub
commit 2a16a1df85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ end
-- Create .lua files by default
if not fs.exists( sPath ) and not string.find( sPath, "%." ) then
local sExtension = settings.get("edit.default_extension", "" )
if sExtension ~= "" then
if sExtension ~= "" and type( sExtension ) == "string" then
sPath = sPath .. "." .. sExtension
end
end

View File

@ -47,7 +47,7 @@ end
-- Create .nfp files by default
if not fs.exists( sPath ) and not string.find( sPath, "%." ) then
local sExtension = settings.get("paint.default_extension", "" )
if sExtension ~= "" then
if sExtension ~= "" and type( sExtension ) == "string" then
sPath = sPath .. "." .. sExtension
end
end