Skip to content

Commit ba1835a

Browse files
committed
update default gamemodes
1 parent eae9074 commit ba1835a

File tree

2 files changed

+50
-52
lines changed

2 files changed

+50
-52
lines changed

client/src/components/gameModeSettings/gameMode/dataFixer/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GameModeStorage, ShareableGameMode } from "..";
1+
import { CurrentFormat, GameModeStorage, ShareableGameMode } from "..";
22
import { Settings } from "../../../../game/localStorage";
33
import { Failure, ParseResult, Success, isFailure } from "../parse"
44
import initial from "./initial"
@@ -29,7 +29,7 @@ type ConverterMap = {
2929
const VERSION_CONVERTERS: Record<string, VersionConverter> = { initial, v0, v1, v2, v3, v4 }
3030

3131
/// This converter is the latest version, and acts as a verification step.
32-
export const LATEST_VERSION_STRING = "v3";
32+
export const LATEST_VERSION_STRING: CurrentFormat = "v4";
3333
const LATEST_VERSION: VersionConverter = VERSION_CONVERTERS[LATEST_VERSION_STRING];
3434

3535
export default function parseFromJson<T extends keyof ConverterMap>(type: T, json: NonNullable<any>): ParseResult<ConverterMap[T]> {

0 commit comments

Comments
 (0)