1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Set server_announce to world.mt and respect modes when changing subgame

This commit is contained in:
Sokomine
2015-07-02 16:26:09 +02:00
committed by est31
parent 8a85e5e58d
commit 0a0378fece
3 changed files with 12 additions and 1 deletions

View File

@@ -103,6 +103,9 @@ local function main_button_handler(this, fields, name, tabdata)
if fields["cb_server_announce"] then
core.setting_set("server_announce", fields["cb_server_announce"])
local selected = core.get_textlist_index("srv_worlds")
menu_worldmt(selected, "server_announce", fields["cb_server_announce"])
return true
end