mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-06-27 15:43:11 +00:00
Running "edit foo" will now create "foo.lua" if "foo" does not exist
This commit is contained in:
parent
6e6b8e7eef
commit
4fb93853ce
@ -13,6 +13,11 @@ if fs.exists( sPath ) and fs.isDir( sPath ) then
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Create .lua files by default
|
||||||
|
if not fs.exists( sPath ) and not string.find( sPath, "%." ) then
|
||||||
|
sPath = sPath .. ".lua"
|
||||||
|
end
|
||||||
|
|
||||||
local x,y = 1,1
|
local x,y = 1,1
|
||||||
local w,h = term.getSize()
|
local w,h = term.getSize()
|
||||||
local scrollX, scrollY = 0,0
|
local scrollX, scrollY = 0,0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user