mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add texture overriding
This commit is contained in:
parent
43702ec6ac
commit
603297cc35
5 changed files with 111 additions and 5 deletions
|
@ -1741,6 +1741,9 @@ void Client::afterContentReceived(IrrlichtDevice *device)
|
|||
text = wgettext("Initializing nodes...");
|
||||
draw_load_screen(text, device, guienv, 0, 72);
|
||||
m_nodedef->updateAliases(m_itemdef);
|
||||
std::string texture_path = g_settings->get("texture_path");
|
||||
if (texture_path != "" && fs::IsDir(texture_path))
|
||||
m_nodedef->applyTextureOverrides(texture_path + DIR_DELIM + "override.txt");
|
||||
m_nodedef->setNodeRegistrationStatus(true);
|
||||
m_nodedef->runNodeResolveCallbacks();
|
||||
delete[] text;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue