More renaming
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user