From cc2aa95599d0f9067c439d5244e9564715bea358 Mon Sep 17 00:00:00 2001 From: TURB042O Date: Fri, 8 Mar 2024 10:20:36 -0600 Subject: [PATCH] fix --- src/mahoji/lib/abstracted_commands/fishingContestCommand.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mahoji/lib/abstracted_commands/fishingContestCommand.ts b/src/mahoji/lib/abstracted_commands/fishingContestCommand.ts index accf928ff4..a015106a99 100644 --- a/src/mahoji/lib/abstracted_commands/fishingContestCommand.ts +++ b/src/mahoji/lib/abstracted_commands/fishingContestCommand.ts @@ -44,8 +44,9 @@ export async function fishingContestStartCommand(user: MUser, channelID: string, if (user.bank.amount(location.bait.id) >= quantity) { loc = location.name; } - } - if (!loc) loc = validLocs[0].name; + } + if (!loc) loc = validLocs[0].name; + const fishingLocation = fishingLocations.find(i => stringMatches(i.name, loc!)); } if (!fishingLocation) { return `That's not a valid location to fish at, you can fish at these locations: ${fishingLocations