More renaming

This commit is contained in:
2026-11-05 23:57:32 -03:00
parent 58b142cac3
commit 9bec0f3718
3 changed files with 2 additions and 14 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ export class CreditsScreen extends GuiScreen {
}
#sections() {
const sections = [{ heading: "bworld", text: AssetManager.instance.get<string>("cubi:assets_text") ?? "" }];
const sections = [{ heading: "cubi", text: AssetManager.instance.get<string>("cubi:assets_text") ?? "" }];
for (const mod of mod_credits) {
sections.push({ heading: `${mod.name} ${mod.version}`, text: mod.text });
}
+1 -1
View File
@@ -43,7 +43,7 @@ import {
export const FORMAT_VERSION = 1;
export const NAMESPACE_PATTERN = /^[a-z0-9_]{1,32}$/;
export const RESERVED_NAMESPACES = ["bworld", "cubi"];
export const RESERVED_NAMESPACES = ["cubi"];
// the namespace for tags every mod shares, like neoforge's. no mod owns it
export const SHARED_TAG_NAMESPACE = "c";
export const TAG_REGISTRIES = ["blocks", "items", "entities", "biomes"] as const;
-12
View File
@@ -276,7 +276,6 @@ export class GameServer {
});
},
});
this.mods.storage = upgrade_mod_storage(saved?.mod_storage ?? {});
if (save) this.world.use_saved_chunks(save.chunks);
this.world.time = saved?.time ?? 0;
this.#day = this.world.day;
@@ -2503,17 +2502,6 @@ interface SavedLevelV4 extends Omit<SavedLevel, "version" | "entities"> {
}[];
}
// curios was a mod of its own before it became part of the base game: which container is each player's curios moves
// into the base game's storage
function upgrade_mod_storage(storage: Record<string, Record<string, unknown>>) {
const curios = storage.curios?.containers;
if (curios !== undefined && storage.bworld?.curios === undefined) {
(storage.bworld ??= {}).curios = curios;
delete storage.curios;
}
return storage;
}
function upgrade_v4_entities(entities: SavedLevelV4["entities"]): SavedEntity[] {
return (entities ?? []).map((entity): SavedItemEntity => ({
id: ITEM_ENTITY_TYPE,