Rename bmod to just mod
This commit is contained in:
+5
-5
@@ -181,12 +181,12 @@ async function join_server(address: ServerAddress, name: string, status: (text:
|
||||
|
||||
// textures, blocks and items all come from the server's mods, so this happens before anything else
|
||||
status("Downloading the server's mods...");
|
||||
const bmods = await download_mods(welcome.mods, address.base);
|
||||
const mods = await download_mods(welcome.mods, address.base);
|
||||
const textures = await engine_textures();
|
||||
const texture_json = new Map<string, TextureJson>();
|
||||
for (const bmod of bmods) {
|
||||
for (const [id, png] of bmod.textures) textures.set(id, png);
|
||||
for (const [id, json] of bmod.texture_json ?? []) texture_json.set(id, json);
|
||||
for (const mod of mods) {
|
||||
for (const [id, png] of mod.textures) textures.set(id, png);
|
||||
for (const [id, json] of mod.texture_json ?? []) texture_json.set(id, json);
|
||||
}
|
||||
const atlas = await build_atlas(textures, texture_json);
|
||||
loaded_mods = true;
|
||||
@@ -194,7 +194,7 @@ async function join_server(address: ServerAddress, name: string, status: (text:
|
||||
set_texture_animations(atlas_texture.tex, device.queue, atlas.animated);
|
||||
AssetManager.instance.assets["cubi:textures"] = atlas_texture;
|
||||
AssetManager.instance.assets["cubi:textures_info"] = atlas.regions;
|
||||
await load_client_mods(welcome.mods, bmods);
|
||||
await load_client_mods(welcome.mods, mods);
|
||||
console.log(`Mods: ${welcome.mods.map((mod) => `${mod.id} ${mod.version}`).join(", ") || "none"}`);
|
||||
|
||||
status("Joining...");
|
||||
|
||||
Reference in New Issue
Block a user