aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-02-03 10:27:34 +0100
committerorwell96 <mono96.mml@gmail.com>2017-02-03 10:27:34 +0100
commit82efe2e773e5c8d18e948811ef3d9d1df1c95157 (patch)
tree0e8b21dffac120e6018cfd3529fe2cf2bfe4b5b0 /advtrains
parent4882abb1c08cdade0a56763cbc88e675a4600f2c (diff)
downloadadvtrains-82efe2e773e5c8d18e948811ef3d9d1df1c95157.tar.gz
advtrains-82efe2e773e5c8d18e948811ef3d9d1df1c95157.tar.bz2
advtrains-82efe2e773e5c8d18e948811ef3d9d1df1c95157.zip
Fix itrainmap not working
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/advtrains_itrainmap/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains_itrainmap/init.lua b/advtrains/advtrains_itrainmap/init.lua
index db1c40b..b1168f1 100644
--- a/advtrains/advtrains_itrainmap/init.lua
+++ b/advtrains/advtrains_itrainmap/init.lua
@@ -25,7 +25,7 @@ local function create_map_form_with_bg(d)
local lbl={}
for pts, tid in pairs(advtrains.detector.on_node) do
- local pos=minetest.get_pos_from_hash(pts)
+ local pos=minetest.get_position_from_hash(pts)
form=form.."box["..(edge_x*(pos.x-minx))..","..(form_z-(edge_z*(pos.z-minz)))..";"..len_x..","..len_z..";red]"
lbl[sid(tid)]=pos
end