From aff23e8622bbd0b6ef53f2071e1b94c879cf3370 Mon Sep 17 00:00:00 2001 From: TastyPumPum <79149170+TastyPumPum@users.noreply.github.com> Date: Sat, 13 Jul 2024 09:26:13 +0100 Subject: [PATCH] Update src/mahoji/lib/abstracted_commands/sepulchreCommand.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --- src/mahoji/lib/abstracted_commands/sepulchreCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts b/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts index 0e417feea7..5c70d2a43f 100644 --- a/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts +++ b/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts @@ -100,7 +100,7 @@ export async function sepulchreCommand(user: MUser, channelID: string, fletching return 'Error selecting fletchable.'; } - fletchingQuantity = Math.floor(tripLength / timeToFletchSingleItem); + fletchingQuantity = Math.min(Math.floor(tripLength / timeToFletchSingleItem), max); const max = user.bank.fits(fletchable.inputItems); if (max < fletchingQuantity && max !== 0) fletchingQuantity = max;