From a78ff65b31f8f6eb65580cf1002bbc0c53ef345e Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 12 Dec 2019 13:59:24 +0100 Subject: Fix inconsistency between node enter callback and lzb approach callbacks (this caused the lzb approach to be called on nodes that have just received an enter event, which is not intended) --- advtrains/lzb.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advtrains/lzb.lua b/advtrains/lzb.lua index 6cbf4ab..8846573 100644 --- a/advtrains/lzb.lua +++ b/advtrains/lzb.lua @@ -151,7 +151,7 @@ end local function invalidate(train) train.lzb = { - trav = atfloor(train.index), + trav = atround(train.index), data = {}, oncoming = {}, } -- cgit v1.2.3