aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cleaners/skyblock/itemId.ts1
-rw-r--r--src/hypixel.ts9
2 files changed, 9 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/itemId.ts b/src/cleaners/skyblock/itemId.ts
index 934064f..991d2d0 100644
--- a/src/cleaners/skyblock/itemId.ts
+++ b/src/cleaners/skyblock/itemId.ts
@@ -37,6 +37,7 @@ const ITEMS = {
'mycel': 'mycelium',
'cocoa': 'cocoa_beans',
'smooth_brick': 'stonebrick',
+ 'lily_pad': 'waterlily',
'redstone_lamp_off': 'redstone_lamp',
'redstone_comparator': 'comparator',
diff --git a/src/hypixel.ts b/src/hypixel.ts
index ebe2eea..e0575dd 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -469,7 +469,14 @@ async function fetchAuctionItemsUncached() {
// if the item in the database isn't in the items api, just set the name to the id
for (const item of auctionItemIds)
if (!(item in idsToData))
- idsToData[item] = { display: { name: item.toLowerCase().replace(/^./, item[0].toUpperCase()).replace(/_/g, ' ') } }
+ idsToData[item] = {
+ display: {
+ name: (item.toLowerCase().replace(/^./, item[0].toUpperCase()).replace(/_/g, ' ')).replace(
+ /\w\S*/g,
+ w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()
+ )
+ }
+ }
return idsToData
}