1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-12-12 19:20:28 +00:00

Update workspace.lua

This commit is contained in:
LDDestroier 2019-06-21 15:03:41 -04:00 committed by GitHub
parent c02fb4a8c6
commit e8a7f9104a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -938,14 +938,14 @@ local main = function()
end
end
else
error("bad argument #1 (number expected, got " .. type(duration) .. ")")
error("bad argument #1 (number expected, got " .. type(duration) .. ")", 2)
end
end
os.cancelTimer = function(id)
if type(id) == "number" then
instances[y][x].timer[id] = nil
else
error("bad argument #1 (number expected, got " .. type(id) .. ")")
error("bad argument #1 (number expected, got " .. type(id) .. ")", 2)
end
end
os.clock = function()
@ -959,7 +959,7 @@ local main = function()
oldOSreplace.queueEvent(evt, ...)
end
else
error("bad argument #1 (number expected, got " .. type(evt) .. ")")
error("bad argument #1 (number expected, got " .. type(evt) .. ")", 2)
end
end
end