aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cleaners/skyblock/farmingContents.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/farmingContents.ts b/src/cleaners/skyblock/farmingContents.ts
index e6bb989..825c1a9 100644
--- a/src/cleaners/skyblock/farmingContents.ts
+++ b/src/cleaners/skyblock/farmingContents.ts
@@ -1,4 +1,5 @@
import typedHypixelApi from 'typed-hypixel-api'
+import { cleanItemId } from './itemId'
export interface PlayerFarmingContestStats {
year: number
@@ -35,7 +36,7 @@ export function cleanFarmingContests(data: typedHypixelApi.SkyBlockProfileMember
const [month, day] = monthDay.split('_')
const contestByDateKey = `${year}:${month}:${day}`
const cropData: PlayerFarmingContestStats['crops'][number] = {
- item: item.toLowerCase(),
+ item: cleanItemId(item),
amount: contestData.collected,
// the api returns the position 0-indexed, so we add 1
position: contestData.claimed_position ? contestData.claimed_position + 1 : null,