aboutsummaryrefslogtreecommitdiff
path: root/clientmods/preview/init.lua
diff options
context:
space:
mode:
authorVincent Glize <vincentglize@hotmail.fr>2017-10-02 22:09:49 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-10-02 22:09:49 +0200
commit4e19791cde6b203ad853905d8c1481c43004a7ea (patch)
tree9db628a01d6678b453fe7ae2b49c60c38179a29c /clientmods/preview/init.lua
parentb9fb3cea33f495f0c9c9d7d74ed67af6aab78b04 (diff)
downloadminetest-4e19791cde6b203ad853905d8c1481c43004a7ea.tar.gz
minetest-4e19791cde6b203ad853905d8c1481c43004a7ea.tar.bz2
minetest-4e19791cde6b203ad853905d8c1481c43004a7ea.zip
[CSM] Add callback on open inventory (#5793)
Diffstat (limited to 'clientmods/preview/init.lua')
-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 630059946..288b1b16c 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -38,6 +38,12 @@ core.register_on_modchannel_signal(function(channel, signal)
.. channel)
end)
+core.register_on_inventory_open(function(inventory)
+ print("INVENTORY OPEN")
+ print(dump(inventory))
+ return false
+end)
+
core.register_on_placenode(function(pointed_thing, node)
print("The local player place a node!")
print("pointed_thing :" .. dump(pointed_thing))