Fix head urls

This commit is contained in:
James Lyne 2021-05-18 18:32:42 +01:00
parent 87024079cc
commit 7adfdec4c7
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ export class DynmapIcon extends DivIcon {
} }
const div = markerContainer.cloneNode(false) as HTMLDivElement, 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); size = point(this.options.iconSize as PointExpression);
this._image = markerIcon.cloneNode(false) as HTMLImageElement; this._image = markerIcon.cloneNode(false) as HTMLImageElement;
@ -96,7 +96,7 @@ export class DynmapIcon extends DivIcon {
update(options: DynmapIconOptions) { update(options: DynmapIconOptions) {
if(this._image && options.icon !== this.options.icon) { 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; this.options.icon = options.icon;
} }

View File

@ -99,7 +99,7 @@ const tickHeadQueue = () => {
src = (head.size === 'body') ? `faces/body/${head.account}.png` :`faces/${head.size}x${head.size}/${head.account}.png`; src = (head.size === 'body') ? `faces/body/${head.account}.png` :`faces/${head.size}x${head.size}/${head.account}.png`;
headsLoading.add(head.cacheKey); headsLoading.add(head.cacheKey);
head.image.src = concatURL(useStore().getters.serverConfig.markers, src); head.image.src = concatURL(useStore().getters.serverConfig.dynmap.markers, src);
tickHeadQueue(); tickHeadQueue();
} }