1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-06-29 00:23:20 +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
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