Rename engine to cubi
This commit is contained in:
+4
-4
@@ -134,7 +134,7 @@ export function load_order(mods: LoadedMod[]): LoadedMod[] {
|
||||
// it has none, and an item file without a texture only adds to its block's item
|
||||
export function registered_ids(mods: LoadedMod[]): Record<TagRegistry, Set<string>> {
|
||||
const ids: Record<TagRegistry, Set<string>> = {
|
||||
blocks: new Set(["bworld:air"]),
|
||||
blocks: new Set(["cubi:air"]),
|
||||
items: new Set(),
|
||||
entities: new Set(),
|
||||
biomes: new Set(),
|
||||
@@ -151,7 +151,7 @@ export function registered_ids(mods: LoadedMod[]): Record<TagRegistry, Set<strin
|
||||
return ids;
|
||||
}
|
||||
|
||||
// engine_textures are the engine: texture ids, for telling whether a texture a mod uses exists
|
||||
// engine_textures are the cubi: texture ids, for telling whether a texture a mod uses exists
|
||||
export function check_references(mods: LoadedMod[], engine_textures: Iterable<string>) {
|
||||
const block_owners = new Map<string, string[]>();
|
||||
const item_owners = new Map<string, string[]>();
|
||||
@@ -240,7 +240,7 @@ export function check_references(mods: LoadedMod[], engine_textures: Iterable<st
|
||||
const tag = id.startsWith("#");
|
||||
const namespace = id.replace("#", "").split(":")[0];
|
||||
if (tag && namespace === SHARED_TAG_NAMESPACE) return;
|
||||
if (namespace !== mod.id && namespace !== "engine" && !dependencies.has(namespace)) {
|
||||
if (namespace !== mod.id && namespace !== "cubi" && !dependencies.has(namespace)) {
|
||||
warnings.push(`${file}: uses ${id} but doesn't list "${namespace}" in dependencies`);
|
||||
}
|
||||
};
|
||||
@@ -290,7 +290,7 @@ export function check_references(mods: LoadedMod[], engine_textures: Iterable<st
|
||||
}
|
||||
}
|
||||
for (const id of [...(json.place_on ?? []), ...(json.place_in ?? [])]) {
|
||||
if (id !== "bworld:air") uses(file, id, "block");
|
||||
if (id !== "cubi:air") uses(file, id, "block");
|
||||
}
|
||||
}
|
||||
for (const { file, json } of mod.models) {
|
||||
|
||||
Reference in New Issue
Block a user