Fix head urls
This commit is contained in:
parent
87024079cc
commit
7adfdec4c7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user