From 4ccabcef0fdeb28fcf4b5c8652f4c7bbefbafb11 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Wed, 7 Jun 2023 22:46:32 +1200 Subject: [PATCH] Bugfix --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 1f01192..ab40e08 100644 --- a/init.lua +++ b/init.lua @@ -598,12 +598,13 @@ local function parse_callbacks(tree, ctx_form, auto_name_id, callbacks.quit = node.on_quit end end + replace_backgrounds = replace_backgrounds or node._enable_bgimg_hack elseif replace_backgrounds then if (node.type == "background" or node.type == "background9") and not node.auto_clip then node.type = "image" end - elseif node.type == "scroll_container" or node._enable_bgimg_hack then + elseif node.type == "scroll_container" then -- Work around a Minetest bug with scroll containers not scrolling -- backgrounds. replace_backgrounds = true