Animated textures !
This commit is contained in:
@@ -27,6 +27,7 @@ export async function pack_mod(mod: LoadedMod): Promise<Uint8Array<ArrayBuffer>>
|
||||
for (const [id, path] of [...mod.texture_files].sort(([a], [b]) => a.localeCompare(b))) {
|
||||
textures.set(id, Deno.readFileSync(path));
|
||||
}
|
||||
const texture_json = new Map([...mod.texture_json].sort(([a], [b]) => a.localeCompare(b)));
|
||||
|
||||
return write_bmod({
|
||||
manifest,
|
||||
@@ -44,6 +45,7 @@ export async function pack_mod(mod: LoadedMod): Promise<Uint8Array<ArrayBuffer>>
|
||||
},
|
||||
scripts,
|
||||
textures,
|
||||
texture_json,
|
||||
credits: manifest.credits ? Deno.readTextFileSync(`${mod.dir}/${manifest.credits}`) : undefined,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user