diff options
Diffstat (limited to 'advtrains_line_automation/line_editor.lua')
-rw-r--r-- | advtrains_line_automation/line_editor.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_line_automation/line_editor.lua b/advtrains_line_automation/line_editor.lua index 54f683d..33686d1 100644 --- a/advtrains_line_automation/line_editor.lua +++ b/advtrains_line_automation/line_editor.lua @@ -1,6 +1,6 @@ local def local F = minetest.formspec_escape -local ifthenelse = ch_core.ifthenelse +local ifthenelse = function(cond, a, b) if cond then return a else return b end end local max_stations = 60 @@ -850,7 +850,7 @@ end def = { -- params = "", description = "Otevře editor variant linek", - privs = {ch_registered_player = true, railway_operator = true}, + privs = {railway_operator = true}, func = function(player_name, param) show_editor_formspec(minetest.get_player_by_name(player_name)) end, } core.register_chatcommand("linky", def) |