Improve a buuuunch of textures and some reworks
This commit is contained in:
+4
-4
@@ -1,6 +1,6 @@
|
||||
// checks between mods: dependencies, load order, and ids one mod uses from another. pure, so the build, check-mods
|
||||
// and the server (on .bmod files) all use it
|
||||
import type { BlockJson, ItemJson, OreJson, RecipeJson } from "./mod_data.ts";
|
||||
import { type BlockJson, choice_ids, type ItemJson, type OreJson, type RecipeJson } from "./mod_data.ts";
|
||||
import { BUILTIN_MODELS, type ModelJson } from "./block_models.ts";
|
||||
|
||||
export interface ModReport {
|
||||
@@ -135,15 +135,15 @@ export function check_references(mods: LoadedMod[], engine_textures: Iterable<st
|
||||
for (const { file, json } of mod.recipes) {
|
||||
switch (json.type) {
|
||||
case "shaped":
|
||||
for (const id of Object.values(json.key)) uses(file, id, "item");
|
||||
for (const id of Object.values(json.key).flatMap(choice_ids)) uses(file, id, "item");
|
||||
uses(file, json.result.id, "item");
|
||||
break;
|
||||
case "furnace":
|
||||
uses(file, json.input, "item");
|
||||
for (const id of choice_ids(json.input)) uses(file, id, "item");
|
||||
uses(file, json.output.id, "item");
|
||||
break;
|
||||
case "fuel":
|
||||
uses(file, json.item, "item");
|
||||
for (const id of choice_ids(json.item)) uses(file, id, "item");
|
||||
break;
|
||||
case "smithing":
|
||||
uses(file, json.tool, "item");
|
||||
|
||||
Reference in New Issue
Block a user