mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-02 07:20:36 +01:00
please dont make name undefinedable, just default to the string id
This commit is contained in:
1 parent
0f299335d6
commit
484d4ae3da
1 file changed
+1
-6
@@ -3,7 +3,6 @@ import {
|
||||
Sc2ReadStream,
|
||||
type TankParameters,
|
||||
} from "@blitzkit/core";
|
||||
import locales from "@blitzkit/i18n/locales.json";
|
||||
import { isEqual, times } from "lodash-es";
|
||||
import { Cache } from "./0_base";
|
||||
import { ServerBlitzKitAPI1 } from "./1_tankDefinitions";
|
||||
@@ -108,11 +107,7 @@ export abstract class ServerBlitzKitAPI2 extends ServerBlitzKitAPI1 {
|
||||
}
|
||||
}
|
||||
|
||||
// unreleased camos are in the game files before their names
|
||||
const name =
|
||||
camo.userString in this.stringsI18n[locales.default]
|
||||
? this.getString(camo.userString)
|
||||
: undefined;
|
||||
const name = this.getString(camo.userString);
|
||||
|
||||
camouflageDefinitions.camouflages[camo.id] = {
|
||||
id: camo.id,
|
||||
|
||||
Reference in new issue
Block a user