update 6.tl3.lua

unpack > table.unpack
This commit is contained in:
Kan18 2019-07-19 17:19:45 -04:00 committed by GitHub
parent 498ab968ee
commit 1c1d2151ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ local function _place(action, indexOrId)
if not state.digPolicy(action) then
state.attackPolicy(action)
end
return unpack(result)
return table.unpack(result)
end)
end
@ -1024,7 +1024,7 @@ function turtle.run(fn, ...)
synchronized(turtle, function()
turtle.resetState()
s, m = pcall(function() fn(unpack(args)) end)
s, m = pcall(function() fn(table.unpack(args)) end)
turtle.resetState()
if not s and m then
_G.printError(m)