Skip to content

Commit

Permalink
fix world.get_list in headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Jan 27, 2025
1 parent c6966aa commit e377450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/scripting/lua/libs/libworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit e377450

Please sign in to comment.