aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/minecraft/inventory.ts8
-rw-r--r--src/lib/sections/Inventories.svelte10
2 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/minecraft/inventory.ts b/src/lib/minecraft/inventory.ts
index 7bd06fc..5d648ae 100644
--- a/src/lib/minecraft/inventory.ts
+++ b/src/lib/minecraft/inventory.ts
@@ -18,7 +18,7 @@ export interface Item {
timestamp?: string
enchantments?: { [name: string]: number }
- head_texture?: string
+ headTexture?: string
}
const INVENTORIES = {
@@ -45,7 +45,7 @@ export function itemToUrl(item: Item, pack?: skyblockAssets.MatcherFile): string
},
}
let textureUrl: string
- if (item.head_texture) {
+ if (item.headTexture) {
// if it's a head, try without vanilla and if it fails just use the mc-heads url
textureUrl = skyblockAssets.getTextureUrl({
id: item.vanillaId,
@@ -54,7 +54,7 @@ export function itemToUrl(item: Item, pack?: skyblockAssets.MatcherFile): string
noNullTexture: true
})
if (textureUrl === null)
- textureUrl = `https://mc-heads.net/head/${item.head_texture}`
+ textureUrl = `https://mc-heads.net/head/${item.headTexture}`
} else
textureUrl = skyblockAssets.getTextureUrl({
id: item.vanillaId,
@@ -103,7 +103,7 @@ const skyblockItems: { [itemName: string]: Item } = {
spruce_log: { vanillaId: 'minecraft:log:1' },
gemstone: {
vanillaId: 'minecraft:skull',
- head_texture: '39b6e047d3b2bca85e8cc49e5480f9774d8a0eafe6dfa9559530590283715142'
+ headTexture: '39b6e047d3b2bca85e8cc49e5480f9774d8a0eafe6dfa9559530590283715142'
},
hard_stone: { vanillaId: 'minecraft:stone' },
} \ No newline at end of file
diff --git a/src/lib/sections/Inventories.svelte b/src/lib/sections/Inventories.svelte
index 80966ef..e570cc7 100644
--- a/src/lib/sections/Inventories.svelte
+++ b/src/lib/sections/Inventories.svelte
@@ -26,24 +26,24 @@
talisman_bag: {
vanillaId: 'skull:3',
display: { name: 'Accessory Bag' },
- head_texture: '961a918c0c49ba8d053e522cb91abc74689367b4d8aa06bfc1ba9154730985ff',
+ headTexture: '961a918c0c49ba8d053e522cb91abc74689367b4d8aa06bfc1ba9154730985ff',
},
potion_bag: {
vanillaId: 'skull:3',
display: { name: 'Potion Bag' },
- head_texture: '9f8b82427b260d0a61e6483fc3b2c35a585851e08a9a9df372548b4168cc817c',
+ headTexture: '9f8b82427b260d0a61e6483fc3b2c35a585851e08a9a9df372548b4168cc817c',
},
fishing_bag: {
vanillaId: 'skull:3',
display: { name: 'Fishing Bag' },
- head_texture: 'eb8e297df6b8dffcf135dba84ec792d420ad8ecb458d144288572a84603b1631',
+ headTexture: 'eb8e297df6b8dffcf135dba84ec792d420ad8ecb458d144288572a84603b1631',
},
quiver: {
vanillaId: 'skull:3',
display: {
name: 'Quiver',
},
- head_texture: '4cb3acdc11ca747bf710e59f4c8e9b3d949fdd364c6869831ca878f0763d1787',
+ headTexture: '4cb3acdc11ca747bf710e59f4c8e9b3d949fdd364c6869831ca878f0763d1787',
},
wardrobe: {
vanillaId: 'leather_chestplate',
@@ -56,7 +56,7 @@
display: {
name: 'Trick or Treat Bag',
},
- head_texture: 'e50f712e877dfd910c97f3819a200a05d49ee6b83b592686e099b9ecd443f228',
+ headTexture: 'e50f712e877dfd910c97f3819a200a05d49ee6b83b592686e099b9ecd443f228',
},
}
</script>