diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-08-21 21:46:16 +0200 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-08-21 21:46:16 +0200 |
commit | 2593b1af1625f9cc3db879541f8425217646b652 (patch) | |
tree | 0a779c9bb78026f05bebe8e53266c323490afc72 /tracks.lua | |
parent | 2ed61efc15322c00863ded46dab722e57316db58 (diff) | |
download | advtrains-2593b1af1625f9cc3db879541f8425217646b652.tar.gz advtrains-2593b1af1625f9cc3db879541f8425217646b652.tar.bz2 advtrains-2593b1af1625f9cc3db879541f8425217646b652.zip |
repairing the trackworker
Diffstat (limited to 'tracks.lua')
-rw-r--r-- | tracks.lua | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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)
|