rename BlockModel to BlockModelType

This commit is contained in:
MihailRis
2025-04-27 15:18:14 +03:00
parent ad07ec61cd
commit 718f5d1089
10 changed files with 43 additions and 45 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ void ContentGfxCache::refresh(const Block& def, const Atlas& atlas) {
sideregions[def.rt.id * 6 + side] = atlas.get(TEXTURE_NOTFOUND);
}
}
if (def.model == BlockModel::custom) {
if (def.model == BlockModelType::CUSTOM) {
auto model = assets.require<model::Model>(def.modelName);
// temporary dirty fix tbh
if (def.modelName.find(':') == std::string::npos) {