diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-12-11 18:40:58 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-12-11 18:40:58 +0100 |
commit | 5d6c9c41f71430ac837424ee124e7026cf36d7eb (patch) | |
tree | 2f364d5a22fa593ae19c15a408d792b070080b20 /init.lua | |
parent | 165a1baac044ba73f083f678170f59508d87f8dc (diff) | |
download | chateffects-5d6c9c41f71430ac837424ee124e7026cf36d7eb.tar.xz |
Fix invalid default setting handling
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -16,9 +16,9 @@ function chateffects.send(message) end local use_chat_color = minetest.settings:get_bool("use_chat_color") - local color = minetest.settings:get("chat_color") + local color = minetest.settings:get("chat_color") or "rainbow" - if use_chat_color and color then + if use_chat_color then local msg if color == "rainbow" then msg = minetest.rainbow(message) |