Fix getMinecraftHead calls
This commit is contained in:
parent
a65644cf34
commit
5ce922505b
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if(showFace.value) {
|
if(showFace.value) {
|
||||||
getMinecraftHead(props.message.playerAccount as string, '16')
|
getMinecraftHead(props.message.playerAccount as string, 'small')
|
||||||
.then((result) => image.value = result.src).catch(() => {});
|
.then((result) => image.value = result.src).catch(() => {});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -69,7 +69,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
if(store.state.components.playerMarkers && store.state.components.playerMarkers.showSkins) {
|
if(store.state.components.playerMarkers && store.state.components.playerMarkers.showSkins) {
|
||||||
try {
|
try {
|
||||||
const result = await getMinecraftHead(props.target, '16');
|
const result = await getMinecraftHead(props.target, 'small');
|
||||||
image.value = result.src;
|
image.value = result.src;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if(store.state.components.playerMarkers && store.state.components.playerMarkers.showSkins) {
|
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(() => {});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user