mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Load files from subfolders in texturepacks
Updated and rebased version of a PR by red-001
This commit is contained in:
@@ -29,6 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include "threading/mutex_auto_lock.h"
|
||||
#include "client/clientevent.h"
|
||||
#include "client/renderingengine.h"
|
||||
#include "client/tile.h"
|
||||
#include "util/auth.h"
|
||||
#include "util/directiontables.h"
|
||||
#include "util/pointedthing.h"
|
||||
@@ -1643,9 +1644,8 @@ void Client::afterContentReceived()
|
||||
text = wgettext("Initializing nodes...");
|
||||
RenderingEngine::draw_load_screen(text, guienv, m_tsrc, 0, 72);
|
||||
m_nodedef->updateAliases(m_itemdef);
|
||||
std::string texture_path = g_settings->get("texture_path");
|
||||
if (!texture_path.empty() && fs::IsDir(texture_path))
|
||||
m_nodedef->applyTextureOverrides(texture_path + DIR_DELIM + "override.txt");
|
||||
for (const auto &path : getTextureDirs())
|
||||
m_nodedef->applyTextureOverrides(path + DIR_DELIM + "override.txt");
|
||||
m_nodedef->setNodeRegistrationStatus(true);
|
||||
m_nodedef->runNodeResolveCallbacks();
|
||||
delete[] text;
|
||||
|
Reference in New Issue
Block a user