diff options
-rw-r--r-- | advtrains/occupation.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/advtrains/occupation.lua b/advtrains/occupation.lua index 7fce312..26e1f79 100644 --- a/advtrains/occupation.lua +++ b/advtrains/occupation.lua @@ -159,10 +159,8 @@ function o.reverse_lookup(ppos) local r = {} local i = 1 while t[i] do - if t[i]~=train_id then - if not r[t[i]] then r[t[i]] = {} end - table.insert(r[t[i]], t[i+1]) - end + if not r[t[i]] then r[t[i]] = {} end + table.insert(r[t[i]], t[i+1]) i = i + 2 end return r |