summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-01-07 20:41:48 +0100
committerorwell96 <orwell@bleipb.de>2018-01-07 20:41:48 +0100
commit9ff0cdfd9d2355fea2b9ae52b1d7414d4917310a (patch)
tree05440935a057f9e2e7f0c17ff45cfc6d8c5939ad
parentef7d73e1cd69a2d23f95cd1bb55383ff17e591a5 (diff)
downloadbasic_trains-9ff0cdfd9d2355fea2b9ae52b1d7414d4917310a.tar.gz
basic_trains-9ff0cdfd9d2355fea2b9ae52b1d7414d4917310a.tar.bz2
basic_trains-9ff0cdfd9d2355fea2b9ae52b1d7414d4917310a.zip
Change controls for trains (again)
-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)