From 2e25833a9304f8603e33380073195a7d5f5fd415 Mon Sep 17 00:00:00 2001 From: Calic Date: Sun, 24 May 2026 03:12:27 +0200 Subject: [PATCH] Rename draw() hook to render() so the engine actually calls it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The engine module-lifecycle looks up HOOK_RENDER by the global name 'render' (engine_module_lifecycle.c:166). The previous draw() function was a global with no caller, so the editor's UI never rendered — the engine fell back to its 'no render hook defined' placeholder. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 6b111ad..e93f61f 100644 --- a/init.lua +++ b/init.lua @@ -594,7 +594,7 @@ function update(ctx, dt) camera.update(dt) end -function draw() +function render(ctx) maps.draw_map() ui.draw() end