diff options
Diffstat (limited to 'advtrains_luaautomation/atc_rail.lua')
-rw-r--r-- | advtrains_luaautomation/atc_rail.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua index 758b8f9..6083dfc 100644 --- a/advtrains_luaautomation/atc_rail.lua +++ b/advtrains_luaautomation/atc_rail.lua @@ -66,19 +66,19 @@ function r.fire_event(pos, evtdata) end return false end, - split_at_fc = function(cmd) + split_at_fc = function(cmd, len) assertt(cmd, "string") if not train_id then return false end - local new_id, fc = advtrains.split_train_at_fc(train) + local new_id, fc = advtrains.split_train_at_fc(train, false, len) if new_id then minetest.after(1,advtrains.atc.train_set_command,advtrains.trains[new_id], cmd, atc_arrow) end return fc or "" end, - split_off_locomotive = function(cmd) + split_off_locomotive = function(cmd, len) assertt(cmd, "string") if not train_id then return false end - local new_id, fc = advtrains.split_train_at_fc(train, true) + local new_id, fc = advtrains.split_train_at_fc(train, true, len) if new_id then minetest.after(1,advtrains.atc.train_set_command,advtrains.trains[new_id], cmd, atc_arrow) end |