From d2b69a98c439b6a8d814998990ecf420e2e3cbfc Mon Sep 17 00:00:00 2001 From: Axel Meyer Date: Sun, 24 May 2026 03:09:29 +0200 Subject: [PATCH] Update dir_of call to use the short module id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Companion to the manifest id rename — engine.module.dir_of needs the registered module id, which is now the short form. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index e503adf..0ff4804 100644 --- a/init.lua +++ b/init.lua @@ -44,7 +44,7 @@ function init() -- 7. Save to a path inside the module's writeable area. -- engine.module.dir_of returns ctx->loaded_module.path — the installed dir -- of this module. io.open with an absolute path bypasses the asset sandbox. - local module_dir = engine.module.dir_of("sporel-module-map-editor-test") + local module_dir = engine.module.dir_of("map-editor-test") local out_path = module_dir .. "/maps/test_work_saved.map.json" maps.save_to_disk(map_id, out_path)