mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Add texture overriding
This commit is contained in:
parent
43702ec6ac
commit
603297cc35
5 changed files with 111 additions and 5 deletions
|
@ -335,6 +335,11 @@ Server::Server(
|
|||
// Apply item aliases in the node definition manager
|
||||
m_nodedef->updateAliases(m_itemdef);
|
||||
|
||||
// Apply texture overrides from texturepack/override.txt
|
||||
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);
|
||||
|
||||
// Perform pending node name resolutions
|
||||
|
@ -3397,5 +3402,3 @@ void dedicated_server_loop(Server &server, bool &kill)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue