Fix incorrect player head URL (Fixes #2)

This commit is contained in:
James Lyne 2021-08-02 17:12:29 +01:00
parent 5ea16aedd8
commit eba8a5b7e1

View File

@ -796,7 +796,7 @@ export default class DynmapMapProvider extends MapProvider {
getPlayerHeadUrl(head: HeadQueueEntry): string { getPlayerHeadUrl(head: HeadQueueEntry): string {
const icon = (head.size === 'body') ? `faces/body/${head.name}` :`faces/${head.size}x${head.size}/${head.name}` const icon = (head.size === 'body') ? `faces/body/${head.name}` :`faces/${head.size}x${head.size}/${head.name}`
return this.getMarkerIconUrl(icon); return `${this.config.dynmap!.markers}${icon}.png`;
} }
getMarkerIconUrl(icon: string): string { getMarkerIconUrl(icon: string): string {