From c76570072611b61aaf8f0db5f6870ffaf4e6d422 Mon Sep 17 00:00:00 2001
From: mat <github@matdoes.dev>
Date: Sun, 27 Mar 2022 17:15:25 -0500
Subject: Resize heads in inventory to use less bandwidth

---
 src/lib/minecraft/Item.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/lib/minecraft/Item.svelte')

diff --git a/src/lib/minecraft/Item.svelte b/src/lib/minecraft/Item.svelte
index c121f12..4d0997c 100644
--- a/src/lib/minecraft/Item.svelte
+++ b/src/lib/minecraft/Item.svelte
@@ -7,6 +7,7 @@
 	export let item: any | null
 	export let isslot = true
 	export let pack: MatcherFile | undefined = undefined
+	export let headSize: number | undefined = undefined
 
 	let itemLoreHtml: string | null
 	let itemNameHtml: string | null
@@ -15,7 +16,7 @@
 	$: itemLoreHtml = item ? item.display.lore.map(l => formattingCodeToHtml(l)).join('<br>') : null
 	$: itemNameHtml = item ? formattingCodeToHtml(item.display.name) : null
 
-	$: imageUrl = item ? itemToUrl(item, pack) : null
+	$: imageUrl = item ? itemToUrl(item, pack, headSize) : null
 </script>
 
 {#if item}
-- 
cgit 

