fix custom model block particles when texture is not specified

This commit is contained in:
MihailRis 2024-11-05 21:59:00 +03:00
parent 53d75a975c
commit 64369fb189

View File

@ -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()) {