From 0b412261d722b66ff796f35c1c1a02744bbbb204 Mon Sep 17 00:00:00 2001 From: Emiel van Rooijen Date: Wed, 27 Mar 2019 22:24:51 +0100 Subject: Update init.lua Fix bug where a change of main channel attributes after first initialization is not properly reflected. They are overwritten by the config in the mod storage, so e.g. a change of main channel color does not work. --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 07e6d8b..8b2cd54 100644 --- a/init.lua +++ b/init.lua @@ -91,6 +91,7 @@ if mod_storage:get_string("channels") == "" then end channels = minetest.parse_json(mod_storage:get_string("channels")) +channels[main_channel_name] = { owner = main_channel_owner, color = main_channel_color } playersChannels = {} local currentPlayerChannel = {} -- cgit v1.2.3