mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add no_texture.png as fallback for unspecified textures
This commit is contained in:
parent
c82ec8b210
commit
86b44ecd82
11 changed files with 68 additions and 23 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue