diff --git a/src/modules/world-edit/lib/world-edit-tool.ts b/src/modules/world-edit/lib/world-edit-tool.ts index f27bdd2f..c6f02e44 100644 --- a/src/modules/world-edit/lib/world-edit-tool.ts +++ b/src/modules/world-edit/lib/world-edit-tool.ts @@ -200,7 +200,6 @@ export abstract class WorldEditTool { /** @deprecated */ stringifyLore(format: Storage): string[] { - ;(format as Partial).version ??= this.storageSchema.version return [ ...Object.entries(format) .filter(([key]) => key !== 'version') @@ -218,7 +217,7 @@ export abstract class WorldEditTool { LORE_SEPARATOR, - ...(JSON.stringify(format) + ...(JSON.stringify({ ...format, version: this.storageSchema.version }) .split('') .map(e => '§' + e) .join('') diff --git a/src/modules/world-edit/tools/randomizer.ts b/src/modules/world-edit/tools/randomizer.ts index cbb8528a..bc7b4b93 100644 --- a/src/modules/world-edit/tools/randomizer.ts +++ b/src/modules/world-edit/tools/randomizer.ts @@ -11,7 +11,7 @@ import { BlocksSetRef, blocksSetDropdown, getBlocksInSet, stringifyBlocksSetRef class RandomizerTool extends WorldEditTool<{ blocksSet: BlocksSetRef; version: number }> { id = 'randomizer' - name = 'слуйчайный блок из набора' + name = 'случайный блок из набора' typeId = MinecraftBlockTypes.WarpedNylium storageSchema = { version: 2,