summaryrefslogtreecommitdiff
path: root/advtrains_train_subway
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_train_subway')
-rw-r--r--advtrains_train_subway/init.lua2
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)