diff --git a/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts b/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts index 080a378085..6534fcce1c 100644 --- a/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts +++ b/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts @@ -101,7 +101,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;