diff options
author | Wuzzy <wuzzy2@mail.ru> | 2020-05-26 00:17:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 00:17:52 +0200 |
commit | 083b285f4319c470f307f0b52f03a2fb68facd38 (patch) | |
tree | bdd02540ad58756a38606f03a995ab837a176709 /games/devtest/mods/modchannels/init.lua | |
parent | b546e8938d41aa9e3101fb9d4d5b02924ed73b60 (diff) | |
download | minetest-083b285f4319c470f307f0b52f03a2fb68facd38.tar.gz minetest-083b285f4319c470f307f0b52f03a2fb68facd38.tar.bz2 minetest-083b285f4319c470f307f0b52f03a2fb68facd38.zip |
Rename “Minimal development test” to “Development Test” (#9928)
Diffstat (limited to 'games/devtest/mods/modchannels/init.lua')
-rw-r--r-- | games/devtest/mods/modchannels/init.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/games/devtest/mods/modchannels/init.lua b/games/devtest/mods/modchannels/init.lua new file mode 100644 index 000000000..ee925f09b --- /dev/null +++ b/games/devtest/mods/modchannels/init.lua @@ -0,0 +1,14 @@ +-- +-- Mod channels experimental handlers +-- +local mod_channel = minetest.mod_channel_join("experimental_preview") + +minetest.register_on_modchannel_message(function(channel, sender, message) + minetest.log("action", "[modchannels] Server received message `" .. message + .. "` on channel `" .. channel .. "` from sender `" .. sender .. "`") + + if mod_channel:is_writeable() then + mod_channel:send_all("experimental answers to preview") + mod_channel:leave() + end +end) |