1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Add no_texture.png as fallback for unspecified textures

This commit is contained in:
Wuzzy
2021-10-20 19:50:16 +00:00
committed by GitHub
parent c82ec8b210
commit 86b44ecd82
11 changed files with 68 additions and 23 deletions

View File

@@ -108,7 +108,12 @@ void LuaEntitySAO::addedToEnvironment(u32 dtime_s)
m_env->getScriptIface()->
luaentity_Activate(m_id, m_init_state, dtime_s);
} else {
// It's an unknown object
// Use entitystring as infotext for debugging
m_prop.infotext = m_init_name;
// Set unknown object texture
m_prop.textures.clear();
m_prop.textures.emplace_back("unknown_object.png");
}
}