summaryrefslogtreecommitdiff
path: root/clientmods
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-01-28 18:31:23 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-13 23:56:05 +0100
commitba66fce8339f818a638f97679bd29da064a8c1c6 (patch)
treead770bd6129be5f1b9058aaca8f773f09631e323 /clientmods
parenta50d07d39a76053328846d82a32bac61468bb16f (diff)
downloadminetest-ba66fce8339f818a638f97679bd29da064a8c1c6.tar.gz
minetest-ba66fce8339f818a638f97679bd29da064a8c1c6.tar.bz2
minetest-ba66fce8339f818a638f97679bd29da064a8c1c6.zip
[CSM] storage + fixes
Diffstat (limited to 'clientmods')
-rw-r--r--clientmods/preview/init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index 4c01d665f..f03e8e112 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -1,3 +1,5 @@
+local modname = core.get_current_modname() or "??"
+
-- This is an example function to ensure it's working properly, should be removed before merge
core.register_on_shutdown(function()
print("[PREVIEW] shutdown client")
@@ -38,5 +40,5 @@ core.register_chatcommand("dump", {
})
core.after(2, function()
- print("After 2")
+ print("[PREVIEW] loaded " .. modname .. " mod")
end)