Minor Bugfixes
This commit is contained in:
parent
9da148347d
commit
be09acf5e2
@ -491,6 +491,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
advtrains.interlocking.clear_visu_context("prog_"..pname)
|
||||
player_rte_prog[pname] = nil
|
||||
chat(pname, "Successfully programmed route.")
|
||||
|
||||
advtrains.interlocking.show_route_edit_form(pname, rp.origin, #tcbs.routes)
|
||||
return
|
||||
end
|
||||
end
|
||||
|
@ -83,7 +83,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
return
|
||||
end
|
||||
local stn = advtrains.lines.stations[stdata.stn]
|
||||
if fields.stnname and fields.stnname ~= stn.name then
|
||||
if stn and fields.stnname and fields.stnname ~= stn.name then
|
||||
if (stn.owner == pname or minetest.check_player_privs(pname, "train_admin")) then
|
||||
stn.name = fields.stnname
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user