Update CraftOS version to 1.9

This commit is contained in:
Jonathan Coates 2023-11-08 19:37:30 +00:00
parent 0c0556a5bc
commit d272a327c7
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
3 changed files with 4 additions and 4 deletions

View File

@ -95,10 +95,10 @@ function pullEventRaw(filter) end
-- nearest multiple of 0.05.
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
-- should return `CraftOS 1.8`.
-- should return `CraftOS 1.9`.
--
-- @treturn string The current CraftOS version.
-- @usage os.version()

View File

@ -31,7 +31,7 @@ _G.bit = {
-- Install lua parts of the os api
function os.version()
return "CraftOS 1.8"
return "CraftOS 1.9"
end
function os.pullEventRaw(sFilter)

View File

@ -214,7 +214,7 @@ describe("The shell", function()
local lines = {}
for i = 1, 5 do lines[i] = win.getLine(i):gsub(" +$", "") end
expect(lines):same {
"CraftOS 1.8",
"CraftOS 1.9",
"> xyz",
"Transferring transfer.txt",
"> xyz",