mirror of
https://github.com/LDDestroier/CC/
synced 2024-09-29 23:40:47 +00:00
Update workspace.lua
This commit is contained in:
parent
c02fb4a8c6
commit
e8a7f9104a
@ -938,14 +938,14 @@ local main = function()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
error("bad argument #1 (number expected, got " .. type(duration) .. ")")
|
error("bad argument #1 (number expected, got " .. type(duration) .. ")", 2)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
os.cancelTimer = function(id)
|
os.cancelTimer = function(id)
|
||||||
if type(id) == "number" then
|
if type(id) == "number" then
|
||||||
instances[y][x].timer[id] = nil
|
instances[y][x].timer[id] = nil
|
||||||
else
|
else
|
||||||
error("bad argument #1 (number expected, got " .. type(id) .. ")")
|
error("bad argument #1 (number expected, got " .. type(id) .. ")", 2)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
os.clock = function()
|
os.clock = function()
|
||||||
@ -959,7 +959,7 @@ local main = function()
|
|||||||
oldOSreplace.queueEvent(evt, ...)
|
oldOSreplace.queueEvent(evt, ...)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
error("bad argument #1 (number expected, got " .. type(evt) .. ")")
|
error("bad argument #1 (number expected, got " .. type(evt) .. ")", 2)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user