mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
fix world.get_list in headless mode
This commit is contained in:
parent
c6966aa153
commit
e377450589
1 changed files with 1 additions and 1 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue