mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -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)
|
error("terminated", 0)
|
||||||
end
|
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)
|
function os.sleep(timeout)
|
||||||
checkArg(1, timeout, "number", "nil")
|
checkArg(1, timeout, "number", "nil")
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"name": "OpenComputers",
|
"name": "OpenComputers",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"credits" : "Inspired by ComputerCraft",
|
"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.",
|
"description": "This mod adds modular computers and robots that can be programmed in Lua.",
|
||||||
"logoFile" : "assets/opencomputers/textures/gui/logo.png"
|
"logoFile" : "assets/opencomputers/textures/gui/logo.png"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user