From e3774505891f168bd1b6ad1c9af9b788e4496212 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 27 Jan 2025 05:37:03 +0300 Subject: [PATCH] fix world.get_list in headless mode --- src/logic/scripting/lua/libs/libworld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic/scripting/lua/libs/libworld.cpp b/src/logic/scripting/lua/libs/libworld.cpp index 01d1efee3..f858f9637 100644 --- a/src/logic/scripting/lua/libs/libworld.cpp +++ b/src/logic/scripting/lua/libs/libworld.cpp @@ -55,7 +55,7 @@ static int l_get_list(lua::State* L) { auto assets = engine->getAssets(); std::string icon = "world#" + name + ".icon"; - if (!AssetsLoader::loadExternalTexture( + if (!engine->isHeadless() && !AssetsLoader::loadExternalTexture( assets, icon, {worlds[i] / fs::path("icon.png"),