aboutsummaryrefslogtreecommitdiff
path: root/advtrains_line_automation/station_editor.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2025-05-27 20:50:00 +0200
committerorwell <orwell@bleipb.de>2025-05-27 20:50:00 +0200
commit2a9891577c1b00068cc4ec858c7dc6c5196f0a2b (patch)
tree5552764a406a88e10076156909bf12745d6b682f /advtrains_line_automation/station_editor.lua
parentf54d3bd701df4b7a915bba423be24cf0a97f480b (diff)
downloadadvtrains-2a9891577c1b00068cc4ec858c7dc6c5196f0a2b.tar.gz
advtrains-2a9891577c1b00068cc4ec858c7dc6c5196f0a2b.tar.bz2
advtrains-2a9891577c1b00068cc4ec858c7dc6c5196f0a2b.zip
Reduce dependencies on cesky hvozd APIs
Diffstat (limited to 'advtrains_line_automation/station_editor.lua')
-rw-r--r--advtrains_line_automation/station_editor.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_line_automation/station_editor.lua b/advtrains_line_automation/station_editor.lua
index 37afa92..ceeeffe 100644
--- a/advtrains_line_automation/station_editor.lua
+++ b/advtrains_line_automation/station_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 rwt = assert(advtrains.lines.rwt)
local function load_stations()
@@ -468,7 +468,7 @@ advtrains.lines.open_station_editor = show_formspec
def = {
-- params = "",
description = "Otevře editor dopraven (stanic, zastávek a odboček)",
- privs = {ch_registered_player = true},
+ privs = {},
func = function(player_name, param) show_formspec(minetest.get_player_by_name(player_name)) end,
}
core.register_chatcommand("zastavky", def)