fix world.get_list in headless mode
This commit is contained in:
parent
c6966aa153
commit
e377450589
@ -55,7 +55,7 @@ static int l_get_list(lua::State* L) {
|
|||||||
|
|
||||||
auto assets = engine->getAssets();
|
auto assets = engine->getAssets();
|
||||||
std::string icon = "world#" + name + ".icon";
|
std::string icon = "world#" + name + ".icon";
|
||||||
if (!AssetsLoader::loadExternalTexture(
|
if (!engine->isHeadless() && !AssetsLoader::loadExternalTexture(
|
||||||
assets,
|
assets,
|
||||||
icon,
|
icon,
|
||||||
{worlds[i] / fs::path("icon.png"),
|
{worlds[i] / fs::path("icon.png"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user