Change the asset keys

This commit is contained in:
2026-11-04 21:54:01 -03:00
parent ba4b2a8798
commit 4683b09e10
20 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -118,7 +118,7 @@ export const FULL_SKY_LIGHT = 15;
// what minecraft calls the ClientLevel: this client's copy of the world, its chunks and the entities in it. the
// chunks are what the server sent, see common/chunk_streaming.ts
export class ClientLevel {
image: Texture = AssetManager.instance.get("bworld:textures");
image: Texture = AssetManager.instance.get("cubi:textures");
chunks = new Map<number, Chunk>();
// the chunks request_meshes and update_translucent_sorting look at, so they don't go through every chunk each frame
#dirty = new Set<Chunk>();
@@ -170,7 +170,7 @@ export class ClientLevel {
type: "init",
blocks_registry: strip_functions(EverythingRegistry.get_registry<BlockRegistry>("blocks")),
models: Object.fromEntries(EverythingRegistry.entries<ModelJson>("models")),
textures_info: AssetManager.instance.get("bworld:textures_info"),
textures_info: AssetManager.instance.get("cubi:textures_info"),
image: { width: this.image.width, height: this.image.height },
visuals: [...block_visuals].map(([nid, visual]) => [nid, visual.replaces_model]),
});