This commit is contained in:
MihailRis 2026-10-14 00:39:30 +03:00
parent 7e41439e1a
commit 674ae220c6

View file

@ -255,17 +255,14 @@ model::Model ModelsGenerator::loadCustomBlockModel(
modelBoxes.push_back(modelbox); modelBoxes.push_back(modelbox);
if (boxarr.size() == 7) { if (boxarr.size() == 7) {
for (uint j = 6; j < 12; j++) { const auto texture = boxarr[6].asString();
modelTextures.emplace_back(boxarr[6].asString()); modelTextures.insert(modelTextures.end(), 6, texture);
}
} else if (boxarr.size() == 12) { } else if (boxarr.size() == 12) {
for (uint j = 6; j < 12; j++) { for (uint j = 6; j < 12; j++) {
modelTextures.emplace_back(boxarr[j].asString()); modelTextures.emplace_back(boxarr[j].asString());
} }
} else { } else {
for (uint j = 6; j < 12; j++) { modelTextures.insert(modelTextures.end(), 6, "notfound");
modelTextures.emplace_back("notfound");
}
} }
} }
} }