From 64369fb189e9d0eccf32984efd781373ef937fd3 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 5 Nov 2024 21:59:00 +0300 Subject: [PATCH] fix custom model block particles when texture is not specified --- src/content/ContentLoader.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/content/ContentLoader.cpp b/src/content/ContentLoader.cpp index c9f09ae2..71b507c6 100644 --- a/src/content/ContentLoader.cpp +++ b/src/content/ContentLoader.cpp @@ -228,6 +228,12 @@ void ContentLoader::loadBlock( } else { throw std::runtime_error(name + ": no 'model-primitives' found"); } + for (uint i = 0; i < 6; i++) { + std::string& texture = def.textureFaces[i]; + if (texture == TEXTURE_NOTFOUND) { + texture = ""; + } + } } def.model = *model; } else if (!modelName.empty()) {