Actually use pcall correctly
This commit is contained in:
		| @@ -66,6 +66,6 @@ while true do | |||||||
|         print("Command", command, "not found.") |         print("Command", command, "not found.") | ||||||
|     end |     end | ||||||
|  |  | ||||||
|     local ok, result = pcall(fn(table.unpack(args))) |     local ok, result = pcall(fn, table.unpack(args)) | ||||||
|     if result then textutils.pagedPrint(result) end |     if result then textutils.pagedPrint(result) end | ||||||
| end | end | ||||||
		Reference in New Issue
	
	Block a user