aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-07-01 15:06:56 -0500
committermat <github@matdoes.dev>2022-07-01 15:06:56 -0500
commit0a1449c7ee3b53175b8a7a8886400d4da9c7364d (patch)
treebc150f10f40856f205f7f1cb58927703aba2f208
parent539f43809c0b108f54defd8396237f4feaca274e (diff)
downloadskyblock-stats-0a1449c7ee3b53175b8a7a8886400d4da9c7364d.tar.gz
skyblock-stats-0a1449c7ee3b53175b8a7a8886400d4da9c7364d.tar.bz2
skyblock-stats-0a1449c7ee3b53175b8a7a8886400d4da9c7364d.zip
Revert "Merge pull request #4 from skyblockstats/faster-heads"
This reverts commit dc95635f199e86072ad7fa7fc7a5d77457120715, reversing changes made to 61c160b600026da4f9dcc43232281e397699f2f1.
-rw-r--r--src/lib/minecraft/Item.svelte2
-rw-r--r--src/lib/minecraft/heads/Head2d.svelte2
-rw-r--r--src/lib/minecraft/heads/Head3d.svelte2
-rw-r--r--src/lib/minecraft/inventory.ts2
-rw-r--r--src/routes/index.svelte7
5 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/minecraft/Item.svelte b/src/lib/minecraft/Item.svelte
index 5abf5bc..42bc3ce 100644
--- a/src/lib/minecraft/Item.svelte
+++ b/src/lib/minecraft/Item.svelte
@@ -57,7 +57,7 @@
loading="lazy"
src={imageUrl}
alt={removeFormattingCode(item.display.name)}
- class:item-custom-head={imageUrl.startsWith('https://h.matdoes.dev/3d/')}
+ class:item-custom-head={imageUrl.startsWith('https://mc-heads.net/head/')}
/>
{/if}
{#if item.count !== undefined && item.count !== 1}
diff --git a/src/lib/minecraft/heads/Head2d.svelte b/src/lib/minecraft/heads/Head2d.svelte
index 1799bed..9d71551 100644
--- a/src/lib/minecraft/heads/Head2d.svelte
+++ b/src/lib/minecraft/heads/Head2d.svelte
@@ -7,7 +7,7 @@
loading="lazy"
class="head head2d"
class:player-head={isPartOfUsername}
- src="https://h.matdoes.dev/2d/{player.uuid}"
+ src="https://crafatar.com/avatars/{player.uuid}?size=8&overlay"
alt="{player.username}'s face"
/>
diff --git a/src/lib/minecraft/heads/Head3d.svelte b/src/lib/minecraft/heads/Head3d.svelte
index fdd0686..3dd3234 100644
--- a/src/lib/minecraft/heads/Head3d.svelte
+++ b/src/lib/minecraft/heads/Head3d.svelte
@@ -7,7 +7,7 @@
loading="lazy"
class="head head3d"
class:player-head={isPartOfUsername}
- src="https://h.matdoes.dev/3d/{player.uuid}"
+ src="https://www.mc-heads.net/head/{player.uuid}/128"
alt="{player.username}'s head"
/>
diff --git a/src/lib/minecraft/inventory.ts b/src/lib/minecraft/inventory.ts
index 9599c35..227ed0c 100644
--- a/src/lib/minecraft/inventory.ts
+++ b/src/lib/minecraft/inventory.ts
@@ -128,7 +128,7 @@ export function itemToUrl(item: Item, pack?: skyblockAssets.MatcherFile, headSiz
noNullTexture: true
})
if (textureUrl === null) {
- textureUrl = `https://h.matdoes.dev/3d/${item.headTexture}`
+ textureUrl = `https://mc-heads.net/head/${item.headTexture}`
if (headSize)
textureUrl += `/${headSize}`
}
diff --git a/src/routes/index.svelte b/src/routes/index.svelte
index 5780e7a..851f70e 100644
--- a/src/routes/index.svelte
+++ b/src/routes/index.svelte
@@ -88,11 +88,8 @@
<a href="//hypixel.net/threads/3597207">Worlds and Beyond</a>.
</p>
<p>
- Minecraft skin APIs: <a href="//h.matdoes.dev">
- mat's super duper simple minecraft head renderer
- </a>
- for heads and
- <a href="//mc-heads.net">mc-heads.net</a> for full-body renders.
+ Minecraft skin APIs: <a href="//mc-heads.net">mc-heads.net</a> for 3d renders and
+ <a href="//mc-crafatar.com">crafatar.com</a> for 2d heads.
</p>
<p>Emojis: <a href="//twemoji.twitter.com/">Twemoji</a>.</p>
<p>Font: <a href="//brailleinstitute.org/freefont">Atkinson Hyperlegible</a>.</p>