From 5ce922505b392e923103ac526680ff7ca091cdff Mon Sep 17 00:00:00 2001 From: James Lyne Date: Wed, 29 Sep 2021 14:39:56 +0100 Subject: [PATCH] Fix getMinecraftHead calls --- src/components/chat/ChatMessage.vue | 2 +- src/components/sidebar/FollowTarget.vue | 2 +- src/components/sidebar/PlayerListItem.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/chat/ChatMessage.vue b/src/components/chat/ChatMessage.vue index f3b4ae8..5ca61da 100644 --- a/src/components/chat/ChatMessage.vue +++ b/src/components/chat/ChatMessage.vue @@ -64,7 +64,7 @@ onMounted(() => { if(showFace.value) { - getMinecraftHead(props.message.playerAccount as string, '16') + getMinecraftHead(props.message.playerAccount as string, 'small') .then((result) => image.value = result.src).catch(() => {}); } }); diff --git a/src/components/sidebar/FollowTarget.vue b/src/components/sidebar/FollowTarget.vue index 45c1ed7..c53463c 100644 --- a/src/components/sidebar/FollowTarget.vue +++ b/src/components/sidebar/FollowTarget.vue @@ -69,7 +69,7 @@ export default defineComponent({ if(store.state.components.playerMarkers && store.state.components.playerMarkers.showSkins) { try { - const result = await getMinecraftHead(props.target, '16'); + const result = await getMinecraftHead(props.target, 'small'); image.value = result.src; } catch (e) {} } diff --git a/src/components/sidebar/PlayerListItem.vue b/src/components/sidebar/PlayerListItem.vue index 267ec66..7ffbf69 100644 --- a/src/components/sidebar/PlayerListItem.vue +++ b/src/components/sidebar/PlayerListItem.vue @@ -92,7 +92,7 @@ export default defineComponent({ onMounted(() => { if(store.state.components.playerMarkers && store.state.components.playerMarkers.showSkins) { - getMinecraftHead(props.player, '16').then((result) => image.value = result.src).catch(() => {}); + getMinecraftHead(props.player, 'small').then((result) => image.value = result.src).catch(() => {}); } });