mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-24 06:03:28 +00:00
Fix Bug in Paint and Edit
This commit is contained in:
parent
19e4c03d3a
commit
9e19dd7070
|
@ -16,7 +16,7 @@ end
|
||||||
-- Create .lua files by default
|
-- Create .lua files by default
|
||||||
if not fs.exists( sPath ) and not string.find( sPath, "%." ) then
|
if not fs.exists( sPath ) and not string.find( sPath, "%." ) then
|
||||||
local sExtension = settings.get("edit.default_extension", "" )
|
local sExtension = settings.get("edit.default_extension", "" )
|
||||||
if sExtension ~= "" then
|
if sExtension ~= "" and type( sExtension ) == "string" then
|
||||||
sPath = sPath .. "." .. sExtension
|
sPath = sPath .. "." .. sExtension
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,7 +47,7 @@ end
|
||||||
-- Create .nfp files by default
|
-- Create .nfp files by default
|
||||||
if not fs.exists( sPath ) and not string.find( sPath, "%." ) then
|
if not fs.exists( sPath ) and not string.find( sPath, "%." ) then
|
||||||
local sExtension = settings.get("paint.default_extension", "" )
|
local sExtension = settings.get("paint.default_extension", "" )
|
||||||
if sExtension ~= "" then
|
if sExtension ~= "" and type( sExtension ) == "string" then
|
||||||
sPath = sPath .. "." .. sExtension
|
sPath = sPath .. "." .. sExtension
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user