aboutsummaryrefslogtreecommitdiff
path: root/clientmods/preview/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'clientmods/preview/init.lua')
-rw-r--r--clientmods/preview/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index bb8d1d600..95cf9ce64 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -1,9 +1,9 @@
-local modname = core.get_current_modname() or "??"
+local modname = assert(core.get_current_modname())
local modstorage = core.get_mod_storage()
local mod_channel
-dofile("preview:example.lua")
--- This is an example function to ensure it's working properly, should be removed before merge
+dofile(core.get_modpath(modname) .. "example.lua")
+
core.register_on_shutdown(function()
print("[PREVIEW] shutdown client")
end)