From 7adfdec4c7f700c4542dd80afe13c7e09431968e Mon Sep 17 00:00:00 2001 From: James Lyne Date: Tue, 18 May 2021 18:32:42 +0100 Subject: [PATCH] Fix head urls --- src/leaflet/icon/DynmapIcon.ts | 4 ++-- src/util.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/leaflet/icon/DynmapIcon.ts b/src/leaflet/icon/DynmapIcon.ts index bbb3e0e..19bc080 100644 --- a/src/leaflet/icon/DynmapIcon.ts +++ b/src/leaflet/icon/DynmapIcon.ts @@ -60,7 +60,7 @@ export class DynmapIcon extends DivIcon { } const div = markerContainer.cloneNode(false) as HTMLDivElement, - url = `${useStore().getters.serverConfig.markers}_markers_/${this.options.icon}.png`, + url = `${useStore().getters.serverConfig.dynmap.markers}_markers_/${this.options.icon}.png`, size = point(this.options.iconSize as PointExpression); this._image = markerIcon.cloneNode(false) as HTMLImageElement; @@ -96,7 +96,7 @@ export class DynmapIcon extends DivIcon { update(options: DynmapIconOptions) { if(this._image && options.icon !== this.options.icon) { - this._image!.src = `${useStore().getters.serverConfig.markers}_markers_/${options.icon}.png`; + this._image!.src = `${useStore().getters.serverConfig.dynmap.markers}_markers_/${options.icon}.png`; this.options.icon = options.icon; } diff --git a/src/util.ts b/src/util.ts index f190841..8fe7f35 100644 --- a/src/util.ts +++ b/src/util.ts @@ -99,7 +99,7 @@ const tickHeadQueue = () => { src = (head.size === 'body') ? `faces/body/${head.account}.png` :`faces/${head.size}x${head.size}/${head.account}.png`; headsLoading.add(head.cacheKey); - head.image.src = concatURL(useStore().getters.serverConfig.markers, src); + head.image.src = concatURL(useStore().getters.serverConfig.dynmap.markers, src); tickHeadQueue(); }