mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 19:04:36 +00:00
Move map metadata to map manifest (#1262)
## Description: To simply the map binary data, remove height & width data to the manifest ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: evan
This commit is contained in:
@@ -103,7 +103,7 @@ export class MapDisplay extends LitElement {
|
||||
const mapValue = GameMapType[this.mapKey as keyof typeof GameMapType];
|
||||
const data = terrainMapFileLoader.getMapData(mapValue);
|
||||
this.mapWebpPath = await data.webpPath();
|
||||
this.mapName = (await data.nationMap()).name;
|
||||
this.mapName = (await data.manifest()).name;
|
||||
} catch (error) {
|
||||
console.error("Failed to load map data:", error);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user