diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-09-13 18:05:59 +0200 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-09-13 18:05:59 +0200 |
commit | c4a26de487091b95a891d739a89656cacba109d4 (patch) | |
tree | f3c567fc0beb51aec7a003a9f4077a782f3bd9bf /tracks.lua | |
parent | a93fb4345e084a0fc67656b85084d9841a3c5ec9 (diff) | |
download | advtrains-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.lua | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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
|