From 9fa43cb7bfc25ba71d16c8210f0074797a7bca1a Mon Sep 17 00:00:00 2001 From: orwell Date: Sun, 28 Jan 2024 00:42:28 +0100 Subject: Implement routesetting incorporating tscache, other improvements --- advtrains/passive.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains') diff --git a/advtrains/passive.lua b/advtrains/passive.lua index 741d7df..231da82 100644 --- a/advtrains/passive.lua +++ b/advtrains/passive.lua @@ -57,7 +57,7 @@ function advtrains.setstate(parpos, newstate, pnode) return false, "train_here" end - if advtrains.interlocking and advtrains.interlocking.route.has_route_lock(minetest.pos_to_string(pos)) then + if advtrains.interlocking and advtrains.interlocking.route.has_route_lock(minetest.encode_pos(pos)) then return false, "route_lock_here" end -- cgit v1.2.3