aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2024-01-28 00:42:28 +0100
committerorwell <orwell@bleipb.de>2024-01-28 00:42:28 +0100
commit9fa43cb7bfc25ba71d16c8210f0074797a7bca1a (patch)
treeff821de8be0737ed276f382a783d3630a4197508 /advtrains
parentf8c2ec60d6fe1927b444aae51c3bce075ed05208 (diff)
downloadadvtrains-9fa43cb7bfc25ba71d16c8210f0074797a7bca1a.tar.gz
advtrains-9fa43cb7bfc25ba71d16c8210f0074797a7bca1a.tar.bz2
advtrains-9fa43cb7bfc25ba71d16c8210f0074797a7bca1a.zip
Implement routesetting incorporating tscache, other improvements
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/passive.lua2
1 files changed, 1 insertions, 1 deletions
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