aboutsummaryrefslogtreecommitdiff
path: root/advtrains_itrainmap
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_itrainmap')
-rw-r--r--advtrains_itrainmap/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_itrainmap/init.lua b/advtrains_itrainmap/init.lua
index 756f1da..0443609 100644
--- a/advtrains_itrainmap/init.lua
+++ b/advtrains_itrainmap/init.lua
@@ -52,7 +52,7 @@ local function create_map_form(d)
if x>=minx and x<=maxx then
for z,y in pairs(itx) do
if z>=minz and z<=maxz then
- local adn=advtrains.detector.on_node[minetest.pos_to_string({x=x, y=y, z=z})]
+ local adn=advtrains.detector.get({x=x, y=y, z=z})
local color="gray"
if adn then
color="red"