aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-11-11 14:45:43 +0100
committerorwell96 <mono96.mml@gmail.com>2016-11-11 15:03:06 +0100
commit46a4f2264718da2c26fb5ba4fb6a585660949299 (patch)
tree602d006642247325aaecbf04243f91225154a743
parent7b357883b3b131ea6459bea952851fa71c2aef73 (diff)
downloadadvtrains-46a4f2264718da2c26fb5ba4fb6a585660949299.tar.gz
advtrains-46a4f2264718da2c26fb5ba4fb6a585660949299.tar.bz2
advtrains-46a4f2264718da2c26fb5ba4fb6a585660949299.zip
Fix detector rails rotating when a train passes
-rw-r--r--advtrains.zipbin1577761 -> 1577768 bytes
-rw-r--r--tracks.lua4
2 files changed, 2 insertions, 2 deletions
diff --git a/advtrains.zip b/advtrains.zip
index 1bf3678..514b720 100644
--- a/advtrains.zip
+++ b/advtrains.zip
Binary files differ
diff --git a/tracks.lua b/tracks.lua
index 0fa9899..811cf16 100644
--- a/tracks.lua
+++ b/tracks.lua
@@ -486,7 +486,7 @@ if mesecon then
},
advtrains = {
on_train_enter=function(pos, train_id)
- minetest.swap_node(pos, {name="advtrains:dtrack_detector_on".."_"..suffix..rotation})
+ minetest.swap_node(pos, {name="advtrains:dtrack_detector_on".."_"..suffix..rotation, param2=minetest.get_node(pos).param2})
mesecon.receptor_on(pos, advtrains.meseconrules)
end
}
@@ -511,7 +511,7 @@ if mesecon then
},
advtrains = {
on_train_leave=function(pos, train_id)
- minetest.swap_node(pos, {name="advtrains:dtrack_detector_off".."_"..suffix..rotation})
+ minetest.swap_node(pos, {name="advtrains:dtrack_detector_off".."_"..suffix..rotation, param2=minetest.get_node(pos).param2})
mesecon.receptor_off(pos, advtrains.meseconrules)
end
}