aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel van Rooijen <evrooije@users.noreply.github.com>2019-03-27 22:24:51 +0100
committerGitHub <noreply@github.com>2019-03-27 22:24:51 +0100
commit0b412261d722b66ff796f35c1c1a02744bbbb204 (patch)
treec0b2e62ab66097ea7a599e8e624b0b477f779029
parent68bee29514287b51c4c170b28b30cbae24294a94 (diff)
downloadbeerchat-0b412261d722b66ff796f35c1c1a02744bbbb204.tar.gz
beerchat-0b412261d722b66ff796f35c1c1a02744bbbb204.tar.bz2
beerchat-0b412261d722b66ff796f35c1c1a02744bbbb204.zip
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.
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
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 = {}