From 2a9891577c1b00068cc4ec858c7dc6c5196f0a2b Mon Sep 17 00:00:00 2001 From: orwell Date: Tue, 27 May 2025 20:50:00 +0200 Subject: Reduce dependencies on cesky hvozd APIs --- advtrains_line_automation/line_editor.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'advtrains_line_automation/line_editor.lua') 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) -- cgit v1.2.3