From 9e19dd70708ec5ee3ab639a4b6b5e383c279c122 Mon Sep 17 00:00:00 2001 From: Wilma456 Date: Thu, 2 Nov 2017 20:14:34 +0100 Subject: [PATCH] Fix Bug in Paint and Edit --- .../resources/assets/computercraft/lua/rom/programs/edit.lua | 2 +- .../computercraft/lua/rom/programs/fun/advanced/paint.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/edit.lua b/src/main/resources/assets/computercraft/lua/rom/programs/edit.lua index 6a3b3b914..0e6ff2213 100644 --- a/src/main/resources/assets/computercraft/lua/rom/programs/edit.lua +++ b/src/main/resources/assets/computercraft/lua/rom/programs/edit.lua @@ -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 diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/paint.lua b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/paint.lua index 59089054d..5daa46ce3 100644 --- a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/paint.lua +++ b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/paint.lua @@ -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