We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f706a62 commit 9c2b6d6Copy full SHA for 9c2b6d6
src/009-walker.lua
@@ -73,7 +73,7 @@ Walker = (function()
73
resumeWalker()
74
when(EVENT_PATH_END, nil, function()
75
debug('Reached destination: ' .. destination)
76
- _script.lastDestination = destination
+ _script.lastDestination = {name=destination, town=town}
77
walkCallback()
78
end)
79
end
@@ -317,7 +317,7 @@ Walker = (function()
317
318
local selfPos = xeno.getSelfPosition()
319
local lastDest = _script.lastDestination
320
- local lastDestLabel = lastDest and ('%s|%s~depot'):format(targetTown, lastDest)
+ local lastDestLabel = lastDest and ('%s|%s~depot'):format(lastDest.town, lastDest.name)
321
local lastDestPos = lastDestLabel and walkerGetPosAfterLabel(lastDestLabel)
322
local labelList = nil
323
local closestLabel = nil
0 commit comments