diff options
| -rw-r--r-- | controllerfw.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controllerfw.lua b/controllerfw.lua index 7298e6b..129fa71 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -747,7 +747,7 @@ elseif event.type == "cop" then end end elseif mem.drive.status.vel < 0 then - for i=#mem.params.floornames,getpos(),-1 do + for i=getpos(),1,-1 do if mem.drive.status.neareststop > gettarget(i) and mem.drive.status.dpos < gettarget(i) then gotofloor(i) break |
