From 5fc9a3073f5c7800b986b0fbcdeaf98d1387e088 Mon Sep 17 00:00:00 2001 From: orwell Date: Tue, 25 Mar 2025 22:31:45 +0100 Subject: fix undeclared global accesses --- advtrains_interlocking/route_prog.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'advtrains_interlocking/route_prog.lua') diff --git a/advtrains_interlocking/route_prog.lua b/advtrains_interlocking/route_prog.lua index 71ebdf3..81aa133 100644 --- a/advtrains_interlocking/route_prog.lua +++ b/advtrains_interlocking/route_prog.lua @@ -175,6 +175,9 @@ function advtrains.interlocking.visualize_route(origin, route, context, tmp_lcks -- display locks for pts, state in pairs(v.locks) do local pos = minetest.string_to_pos(pts) + if not pos then + pos = advtrains.decode_pos(pts) + end routesprite(context, pos, "fix"..k..pts, "at_il_route_lock.png", "Fixed in state '"..state.."' by route "..route.name.." until segment #"..k.." is freed.") end end -- cgit v1.2.3