mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 10:51:55 -04:00
fixed fs possibly being nil when os lib is loaded
This commit is contained in:
parent
03eedec22a
commit
78e22a0384
@ -25,9 +25,13 @@ function os.exit()
|
||||
error("terminated", 0)
|
||||
end
|
||||
|
||||
os.remove = fs.remove
|
||||
function os.remove(...)
|
||||
return fs.remove(...)
|
||||
end
|
||||
|
||||
os.rename = fs.rename
|
||||
function os.rename(...)
|
||||
return fs.rename(...)
|
||||
end
|
||||
|
||||
function os.sleep(timeout)
|
||||
checkArg(1, timeout, "number", "nil")
|
||||
|
@ -4,7 +4,7 @@
|
||||
"name": "OpenComputers",
|
||||
"version": "0.0.0",
|
||||
"credits" : "Inspired by ComputerCraft",
|
||||
"authors": ["Florian 'Sangar' Nücke"],
|
||||
"authors": ["Florian 'Sangar' Nücke", "Johannes 'Lord Joda' Lohrer"],
|
||||
"description": "This mod adds modular computers and robots that can be programmed in Lua.",
|
||||
"logoFile" : "assets/opencomputers/textures/gui/logo.png"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user