aboutsummaryrefslogtreecommitdiff
path: root/builtin/client/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/client/init.lua')
-rw-r--r--builtin/client/init.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/builtin/client/init.lua b/builtin/client/init.lua
new file mode 100644
index 000000000..d14301ade
--- /dev/null
+++ b/builtin/client/init.lua
@@ -0,0 +1,22 @@
+-- Minetest: builtin/client/init.lua
+local scriptpath = core.get_builtin_path()..DIR_DELIM
+local clientpath = scriptpath.."client"..DIR_DELIM
+
+dofile(clientpath .. "register.lua")
+
+-- This is an example function to ensure it's working properly, should be removed before merge
+core.register_on_shutdown(function()
+ print("shutdown client")
+end)
+
+-- This is an example function to ensure it's working properly, should be removed before merge
+core.register_on_receiving_chat_messages(function(message)
+ print("Received message " .. message)
+ return false
+end)
+
+-- This is an example function to ensure it's working properly, should be removed before merge
+core.register_on_sending_chat_messages(function(message)
+ print("Sending message " .. message)
+ return false
+end)