aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-05-30 15:18:24 +0200
committerorwell96 <mono96.mml@gmail.com>2017-05-30 15:19:24 +0200
commitca6989b560cf99af606bbeead1f6551e4f5f3349 (patch)
tree909c80b6db9c8fec1917bc7d853438ae95c463ce
parentb8a3ac038f3f071c731752484109bf01536f36b1 (diff)
downloadadvtrains-ca6989b560cf99af606bbeead1f6551e4f5f3349.tar.gz
advtrains-ca6989b560cf99af606bbeead1f6551e4f5f3349.tar.bz2
advtrains-ca6989b560cf99af606bbeead1f6551e4f5f3349.zip
Fix detector rails changing to default orientation
Release 1.8.1
-rw-r--r--advtrains.zipbin4994808 -> 4996801 bytes
-rw-r--r--advtrains/advtrains/tracks.lua4
2 files changed, 2 insertions, 2 deletions
diff --git a/advtrains.zip b/advtrains.zip
index 9f73bd3..cba0602 100644
--- a/advtrains.zip
+++ b/advtrains.zip
Binary files differ
diff --git a/advtrains/advtrains/tracks.lua b/advtrains/advtrains/tracks.lua
index be419fd..5738abb 100644
--- a/advtrains/advtrains/tracks.lua
+++ b/advtrains/advtrains/tracks.lua
@@ -644,7 +644,7 @@ if mesecon then
},
advtrains = {
on_train_enter=function(pos, train_id)
- advtrains.ndb.swap_node(pos, {name="advtrains:dtrack_detector_on".."_"..suffix..rotation, param2=minetest.get_node(pos).param2})
+ advtrains.ndb.swap_node(pos, {name="advtrains:dtrack_detector_on".."_"..suffix..rotation, param2=advtrains.ndb.get_node(pos).param2})
mesecon.receptor_on(pos, advtrains.meseconrules)
end
}
@@ -669,7 +669,7 @@ if mesecon then
},
advtrains = {
on_train_leave=function(pos, train_id)
- advtrains.ndb.swap_node(pos, {name="advtrains:dtrack_detector_off".."_"..suffix..rotation, param2=minetest.get_node(pos).param2})
+ advtrains.ndb.swap_node(pos, {name="advtrains:dtrack_detector_off".."_"..suffix..rotation, param2=advtrains.ndb.get_node(pos).param2})
mesecon.receptor_off(pos, advtrains.meseconrules)
end
}