aboutsummaryrefslogtreecommitdiff
path: root/advtrains_itrainmap
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2017-10-25 11:49:34 +0200
committerorwell96 <orwell@bleipb.de>2017-10-25 11:49:34 +0200
commitf1a8b4f505313f3b2c37ced2dd3402e2740889fb (patch)
tree8bf4bd99774ad7e7f5b48edcd3598bafe722ba57 /advtrains_itrainmap
parent1f9a9062e022c401826155efd3cd45a479d50c15 (diff)
downloadadvtrains-f1a8b4f505313f3b2c37ced2dd3402e2740889fb.tar.gz
advtrains-f1a8b4f505313f3b2c37ced2dd3402e2740889fb.tar.bz2
advtrains-f1a8b4f505313f3b2c37ced2dd3402e2740889fb.zip
Implement multi-occupation in detector.on_node table to finally fix collisions
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"