aboutsummaryrefslogtreecommitdiff
path: root/tracks.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-09-13 18:05:59 +0200
committerorwell96 <mono96.mml@gmail.com>2016-09-13 18:05:59 +0200
commitc4a26de487091b95a891d739a89656cacba109d4 (patch)
treef3c567fc0beb51aec7a003a9f4077a782f3bd9bf /tracks.lua
parenta93fb4345e084a0fc67656b85084d9841a3c5ec9 (diff)
downloadadvtrains-c4a26de487091b95a891d739a89656cacba109d4.tar.gz
advtrains-c4a26de487091b95a891d739a89656cacba109d4.tar.bz2
advtrains-c4a26de487091b95a891d739a89656cacba109d4.zip
various improvements on signals and bumpers
Diffstat (limited to 'tracks.lua')
-rw-r--r--tracks.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/tracks.lua b/tracks.lua
index e22954d..6153658 100644
--- a/tracks.lua
+++ b/tracks.lua
@@ -357,8 +357,13 @@ function advtrains.register_bumpers(tracktype, def, preset)
railheight=conns.railheight or 0,
}
end
+
for rotid, rotation in ipairs(preset.rotation) do
local img_suffix="bumper"..rotation
+
+ local crea=1
+ if rotid==1 then crea=0 end
+
minetest.register_node(def.nodename_prefix.."_".."bumper"..rotation, advtrains.merge_tables(
common_def,
{
@@ -377,7 +382,7 @@ function advtrains.register_bumpers(tracktype, def, preset)
))
--advtrains.trackplacer.add_single_conn(def.nodename_prefix, "bumper", rotation, cycle_conns({conn1=0, conn2=8}, rotid))
- --advtrains.trackplacer.add_worked(def.nodename_prefix, "bumper", rotation, preset.trackworker[suffix])
+ advtrains.trackplacer.add_worked(def.nodename_prefix, "bumper", rotation, nil)
end
end