diff options
author | red-001 <red-001@outlook.ie> | 2017-01-29 17:43:44 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-13 23:56:05 +0100 |
commit | 073f5cf03d95ce1cdf04ce8a0adcaf1fc571d95f (patch) | |
tree | eb35aa9d964972e85beaf66eda3bd9077018861a /clientmods/preview | |
parent | ba66fce8339f818a638f97679bd29da064a8c1c6 (diff) | |
download | minetest-073f5cf03d95ce1cdf04ce8a0adcaf1fc571d95f.tar.gz minetest-073f5cf03d95ce1cdf04ce8a0adcaf1fc571d95f.tar.bz2 minetest-073f5cf03d95ce1cdf04ce8a0adcaf1fc571d95f.zip |
[CSM] Add `on_dignode` callback (#5140)
Diffstat (limited to 'clientmods/preview')
-rw-r--r-- | clientmods/preview/init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua index f03e8e112..3085eda24 100644 --- a/clientmods/preview/init.lua +++ b/clientmods/preview/init.lua @@ -42,3 +42,9 @@ core.register_chatcommand("dump", { core.after(2, function() print("[PREVIEW] loaded " .. modname .. " mod") end) + +core.register_on_dignode(function(pos, node) + print("pos:" .. dump(pos)) + print("node:" .. dump(node)) + return false +end)
\ No newline at end of file |