aboutsummaryrefslogtreecommitdiff
path: root/tracks.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-09-12 13:05:14 +0200
committerorwell96 <mono96.mml@gmail.com>2016-09-12 13:05:14 +0200
commit1cffe6a9b63305eaccce007af5db522cfb5989d1 (patch)
tree6d9cd14fc4fb5b97144dfa4cccc574c5393e4e71 /tracks.lua
parent0343b7680aa3fa7bc81e2dc7c76ca43c9c27a559 (diff)
downloadadvtrains-1cffe6a9b63305eaccce007af5db522cfb5989d1.tar.gz
advtrains-1cffe6a9b63305eaccce007af5db522cfb5989d1.tar.bz2
advtrains-1cffe6a9b63305eaccce007af5db522cfb5989d1.zip
fix item drops on rails, and throw bumpers out of the trackplacer tables, because it caused confusion
Diffstat (limited to 'tracks.lua')
-rw-r--r--tracks.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/tracks.lua b/tracks.lua
index 1ed3d6e..29f251d 100644
--- a/tracks.lua
+++ b/tracks.lua
@@ -200,7 +200,7 @@ function advtrains.register_tracks(tracktype, def, preset)
rely1=0,
rely2=0,
railheight=0,
- drop="advtrains:placetrack_"..tracktype,
+ drop=def.nodename_prefix.."_placer",
can_dig=function(pos)
return not advtrains.is_train_at_pos(pos)
end,
@@ -320,7 +320,6 @@ function advtrains.register_bumpers(tracktype, def, preset)
rely1=0,
rely2=0,
railheight=0,
- drop="advtrains:placetrack_"..tracktype,
can_dig=function(pos)
return not advtrains.is_train_at_pos(pos)
end,
@@ -361,8 +360,8 @@ 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_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])
end
end