diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2017-09-26 08:31:56 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2017-09-26 08:32:07 +0200 |
commit | f7e57a0d20879e1d1956e36d782a3ab98aa84e38 (patch) | |
tree | a5da3211eb77d84e321fab1b03391975c522bd08 /clientmods/preview | |
parent | 9eb163ab4f72fad234d47e9446f5608d1c5c02dc (diff) | |
download | minetest-f7e57a0d20879e1d1956e36d782a3ab98aa84e38.tar.gz minetest-f7e57a0d20879e1d1956e36d782a3ab98aa84e38.tar.bz2 minetest-f7e57a0d20879e1d1956e36d782a3ab98aa84e38.zip |
preview: try to send mod channel messages 4 seconds after joining, not after loading mod
Diffstat (limited to 'clientmods/preview')
-rw-r--r-- | clientmods/preview/init.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua index bf5fb3db8..630059946 100644 --- a/clientmods/preview/init.lua +++ b/clientmods/preview/init.lua @@ -17,6 +17,12 @@ core.register_on_connect(function() print("Server port: " .. server_info.port) mod_channel = core.mod_channel_join("experimental_preview") + + core.after(4, function() + if mod_channel:is_writeable() then + mod_channel:send_all("preview talk to experimental") + end + end) end) core.register_on_modchannel_message(function(channel, sender, message) @@ -116,12 +122,6 @@ core.after(2, function() preview_minimap() end) -core.after(4, function() - if mod_channel:is_writeable() then - mod_channel:send_all("preview talk to experimental") - end -end) - core.after(5, function() if core.ui.minimap then core.ui.minimap:show() |