mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-23 23:46:55 +00:00
Update CraftOS version to 1.9
This commit is contained in:
parent
0c0556a5bc
commit
d272a327c7
@ -95,10 +95,10 @@ function pullEventRaw(filter) end
|
|||||||
-- nearest multiple of 0.05.
|
-- nearest multiple of 0.05.
|
||||||
function sleep(time) end
|
function sleep(time) end
|
||||||
|
|
||||||
--- Get the current CraftOS version (for example, `CraftOS 1.8`).
|
--- Get the current CraftOS version (for example, `CraftOS 1.9`).
|
||||||
--
|
--
|
||||||
-- This is defined by `bios.lua`. For the current version of CC:Tweaked, this
|
-- This is defined by `bios.lua`. For the current version of CC:Tweaked, this
|
||||||
-- should return `CraftOS 1.8`.
|
-- should return `CraftOS 1.9`.
|
||||||
--
|
--
|
||||||
-- @treturn string The current CraftOS version.
|
-- @treturn string The current CraftOS version.
|
||||||
-- @usage os.version()
|
-- @usage os.version()
|
||||||
|
@ -31,7 +31,7 @@ _G.bit = {
|
|||||||
|
|
||||||
-- Install lua parts of the os api
|
-- Install lua parts of the os api
|
||||||
function os.version()
|
function os.version()
|
||||||
return "CraftOS 1.8"
|
return "CraftOS 1.9"
|
||||||
end
|
end
|
||||||
|
|
||||||
function os.pullEventRaw(sFilter)
|
function os.pullEventRaw(sFilter)
|
||||||
|
@ -214,7 +214,7 @@ describe("The shell", function()
|
|||||||
local lines = {}
|
local lines = {}
|
||||||
for i = 1, 5 do lines[i] = win.getLine(i):gsub(" +$", "") end
|
for i = 1, 5 do lines[i] = win.getLine(i):gsub(" +$", "") end
|
||||||
expect(lines):same {
|
expect(lines):same {
|
||||||
"CraftOS 1.8",
|
"CraftOS 1.9",
|
||||||
"> xyz",
|
"> xyz",
|
||||||
"Transferring transfer.txt",
|
"Transferring transfer.txt",
|
||||||
"> xyz",
|
"> xyz",
|
||||||
|
Loading…
Reference in New Issue
Block a user