streaming assets

This commit is contained in:
David Allemang
2026-07-06 14:02:29 -04:00
parent 7f946723ce
commit 0a32b46e93
6 changed files with 160 additions and 56 deletions

View File

@@ -28,7 +28,7 @@ export class ModelHandler {
const json = await res.json();
if (json.parent) {
const parent = await cache.get(json.parent, 'models');
const parent = await cache.getAsync(json.parent, 'models');
json.textures = {...parent.textures, ...json.textures};
if (!json.elements && parent.elements) {
json.elements = parent.elements;
@@ -40,6 +40,10 @@ export class ModelHandler {
return new BlockModel(MISSING_MODEL_JSON);
}
}
getFallback(id) {
return new BlockModel(MISSING_MODEL_JSON);
}
}
const CUBOID_FACES = {