Actually use pcall correctly

This commit is contained in:
osmarks 2018-08-12 17:31:05 +01:00
parent 8d99531058
commit 9c15785c70
1 changed files with 1 additions and 1 deletions

View File

@ -66,6 +66,6 @@ while true do
print("Command", command, "not found.")
end
local ok, result = pcall(fn(table.unpack(args)))
local ok, result = pcall(fn, table.unpack(args))
if result then textutils.pagedPrint(result) end
end