summaryrefslogtreecommitdiff
path: root/clientmods
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-03-17 18:20:13 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-17 19:20:13 +0100
commitd31750cb9375a961bf225ede210435751edfe7c9 (patch)
tree24f156b57f3c1a905b0422275fe99487b4fce146 /clientmods
parent7b74f04a611ddaf36d79c0c9ebbf7f2b89c12a64 (diff)
downloadminetest-d31750cb9375a961bf225ede210435751edfe7c9.tar.gz
minetest-d31750cb9375a961bf225ede210435751edfe7c9.tar.bz2
minetest-d31750cb9375a961bf225ede210435751edfe7c9.zip
Give CSM access to use `core.colorize()` (#5113)
Diffstat (limited to 'clientmods')
-rw-r--r--clientmods/preview/init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index 25a61da51..008f7ac14 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -40,6 +40,12 @@ core.register_chatcommand("dump", {
end,
})
+core.register_chatcommand("colorize_test", {
+ func = function(param)
+ return true, core.colorize("red", param)
+ end,
+})
+
core.register_chatcommand("test_node", {
func = function(param)
core.display_chat_message(dump(core.get_node({x=0, y=0, z=0})))