diff options
author | orwell96 <orwell@bleipb.de> | 2018-01-07 20:41:48 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-01-07 20:41:48 +0100 |
commit | 1f26781b6a79135159205231f580beb06e789d4d (patch) | |
tree | bd3effc793bc510922e76b407426dd06bc0907cc /advtrains_train_subway/init.lua | |
parent | 07442cfe8ff1a23053446c18e2ada854eeed18d8 (diff) | |
download | advtrains-1f26781b6a79135159205231f580beb06e789d4d.tar.gz advtrains-1f26781b6a79135159205231f580beb06e789d4d.tar.bz2 advtrains-1f26781b6a79135159205231f580beb06e789d4d.zip |
Change controls for trains (again)
Diffstat (limited to 'advtrains_train_subway/init.lua')
-rw-r--r-- | advtrains_train_subway/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_train_subway/init.lua b/advtrains_train_subway/init.lua index 310ccf8..2948fb8 100644 --- a/advtrains_train_subway/init.lua +++ b/advtrains_train_subway/init.lua @@ -133,7 +133,7 @@ minetest.register_craftitem(":advtrains:subway_train", { local yaw = placer:get_look_horizontal() + (math.pi/2) local plconnid = advtrains.yawToClosestConn(yaw, tconns) - local prevpos = advtrains.get_adjacent_rail(pointed_thing.under, tconns, plconnid, prototype.drives_on) + local prevpos = advtrains.get_adjacent_rail(pointed_thing.under, tconns, plconnid, advtrains.all_tracktypes) if not prevpos then return end local id=advtrains.create_new_train_at(pointed_thing.under, prevpos) |