From 0a9cb548d79b8019762d3629a49afe3d257cda43 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 10 Feb 2021 20:55:20 +0100 Subject: Prevent calling approach callbacks during routesetting interlocking.set_route() was updating the signal aspect, which caused LZB's invalidate_ahead callback to run, although the route isn't yet fully set. Don't look ahead at this point, but instead in the next train step. --- advtrains/lzb.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/advtrains/lzb.lua b/advtrains/lzb.lua index f24ab4b..6a899d6 100644 --- a/advtrains/lzb.lua +++ b/advtrains/lzb.lua @@ -259,7 +259,6 @@ end) advtrains.te_register_on_invalidate_ahead(function(id, train, start_idx) advtrains.lzb_invalidate_ahead(train, start_idx) - look_ahead(id, train) end) advtrains.te_register_on_update(function(id, train) -- cgit v1.2.3