1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-11-15 06:37:19 +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

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