diff options
author | orwell <orwell@bleipb.de> | 2025-05-27 20:50:00 +0200 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2025-05-27 20:50:00 +0200 |
commit | 2a9891577c1b00068cc4ec858c7dc6c5196f0a2b (patch) | |
tree | 5552764a406a88e10076156909bf12745d6b682f /advtrains_line_automation/line_editor.lua | |
parent | f54d3bd701df4b7a915bba423be24cf0a97f480b (diff) | |
download | advtrains-2a9891577c1b00068cc4ec858c7dc6c5196f0a2b.tar.gz advtrains-2a9891577c1b00068cc4ec858c7dc6c5196f0a2b.tar.bz2 advtrains-2a9891577c1b00068cc4ec858c7dc6c5196f0a2b.zip |
Reduce dependencies on cesky hvozd APIs
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) |