From ca1d90a739ff0cffe9d95c59752ca3ff40f49e9c Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 30 Sep 2021 13:16:39 +0100 Subject: [PATCH] Remove unused world/map properties --- src/index.d.ts | 2 -- src/model/LiveAtlasMapDefinition.ts | 3 --- src/providers/Pl3xmapMapProvider.ts | 2 -- src/util/dynmap.ts | 3 --- 4 files changed, 10 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index 8ef5279..c397d08 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -178,8 +178,6 @@ interface LiveAtlasWorldDefinition { name: string; displayName: string; dimension: LiveAtlasDimension; - protected: boolean; - height: number; center: Coordinate; maps: Map; } diff --git a/src/model/LiveAtlasMapDefinition.ts b/src/model/LiveAtlasMapDefinition.ts index 8d32a81..2fa52fd 100644 --- a/src/model/LiveAtlasMapDefinition.ts +++ b/src/model/LiveAtlasMapDefinition.ts @@ -29,7 +29,6 @@ export interface LiveAtlasMapDefinitionOptions { backgroundNight?: string; imageFormat: string; prefix?: string; - protected?: boolean; mapToWorld?: [number, number, number, number, number, number, number, number, number]; worldToMap?: [number, number, number, number, number, number, number, number, number]; nativeZoomLevels: number; @@ -48,7 +47,6 @@ export default class LiveAtlasMapDefinition { readonly backgroundNight?: string; readonly imageFormat: string; readonly prefix: string; - readonly protected: boolean; private readonly projection?: Readonly; readonly nativeZoomLevels: number; readonly extraZoomLevels: number; @@ -68,7 +66,6 @@ export default class LiveAtlasMapDefinition { this.imageFormat = options.imageFormat; this.prefix = options.prefix || ''; - this.protected = options.protected || false; this.nativeZoomLevels = options.nativeZoomLevels || 1; this.extraZoomLevels = options.extraZoomLevels || 0; diff --git a/src/providers/Pl3xmapMapProvider.ts b/src/providers/Pl3xmapMapProvider.ts index 230166e..ccdd8da 100644 --- a/src/providers/Pl3xmapMapProvider.ts +++ b/src/providers/Pl3xmapMapProvider.ts @@ -131,9 +131,7 @@ export default class Pl3xmapMapProvider extends MapProvider { name: world.name || '(Unnamed world)', displayName: world.display_name || world.name, dimension, - protected: false, seaLevel: 0, - height: 256, center: {x: worldResponse.spawn.x, y: 0, z: worldResponse.spawn.z}, maps, }; diff --git a/src/util/dynmap.ts b/src/util/dynmap.ts index fae199e..b102ce5 100644 --- a/src/util/dynmap.ts +++ b/src/util/dynmap.ts @@ -75,8 +75,6 @@ export function buildWorlds(response: any): Array { name: world.name, displayName: world.title || '', dimension: worldType, - protected: world.protected || false, - height: world.height || 256, seaLevel: world.sealevel || 64, center: { x: world.center.x || 0, @@ -108,7 +106,6 @@ export function buildWorlds(response: any): Array { name: map.name || '(Unnamed map)', nightAndDay: map.nightandday || false, prefix: map.prefix || '', - protected: map.protected || false, displayName: map.title || '', mapToWorld: map.maptoworld || undefined, worldToMap: map.worldtomap || undefined,