1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Introduce get_modpath() for CSM

This commit is contained in:
sfan5 2019-11-08 20:18:41 +01:00
parent 82a2e02323
commit b1f2a69382
5 changed files with 23 additions and 4 deletions

View file

@ -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)