aboutsummaryrefslogtreecommitdiff
path: root/tracks.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-08-21 21:46:16 +0200
committerorwell96 <mono96.mml@gmail.com>2016-08-21 21:46:16 +0200
commit2593b1af1625f9cc3db879541f8425217646b652 (patch)
tree0a779c9bb78026f05bebe8e53266c323490afc72 /tracks.lua
parent2ed61efc15322c00863ded46dab722e57316db58 (diff)
downloadadvtrains-2593b1af1625f9cc3db879541f8425217646b652.tar.gz
advtrains-2593b1af1625f9cc3db879541f8425217646b652.tar.bz2
advtrains-2593b1af1625f9cc3db879541f8425217646b652.zip
repairing the trackworker
Diffstat (limited to 'tracks.lua')
-rw-r--r--tracks.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/tracks.lua b/tracks.lua
index 260cd81..0f08e74 100644
--- a/tracks.lua
+++ b/tracks.lua
@@ -259,7 +259,7 @@ function advtrains.register_tracks_modeled(tracktype, def)
attached_node=1,
["advtrains_track_"..tracktype]=1,
dig_immediate=2,
- --not_in_creative_inventory=1,
+ not_in_creative_inventory=1,
},
rely1=0,
rely2=0,
@@ -303,7 +303,16 @@ function advtrains.register_tracks_modeled(tracktype, def)
railheight=0.75,
},
def.vst2 or {}))
-
+
+ advtrains.trackplacer_register(def.nodename_prefix.."_st", 0, 8)
+ advtrains.trackplacer_register(def.nodename_prefix.."_st_30", 1, 9)
+ advtrains.trackplacer_register(def.nodename_prefix.."_st_45", 2, 10)
+ advtrains.trackplacer_register(def.nodename_prefix.."_st_60", 3, 11)
+ advtrains.trackplacer_register(def.nodename_prefix.."_cr", 0, 7)
+ advtrains.trackplacer_register(def.nodename_prefix.."_cr_30", 1, 8)
+ advtrains.trackplacer_register(def.nodename_prefix.."_cr_45", 2, 9)
+ advtrains.trackplacer_register(def.nodename_prefix.."_cr_60", 3, 10)
+
--[[advtrains.trackplacer_register(def.nodename_prefix.."_st", 0, 8)
advtrains.trackplacer_register(def.nodename_prefix.."_st_45", 2, 10)
advtrains.trackplacer_register(def.nodename_prefix.."_cr", 0, 6)