From 6ba0cfa459e6328ddde8a11fcfec838320fddb8e Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 6 Nov 2023 09:24:13 +0000 Subject: [PATCH] Fix inverted check --- project/src/helpers/ItemHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/helpers/ItemHelper.ts b/project/src/helpers/ItemHelper.ts index 6fdb3db8..6109a9f0 100644 --- a/project/src/helpers/ItemHelper.ts +++ b/project/src/helpers/ItemHelper.ts @@ -361,7 +361,7 @@ class ItemHelper protected getRepairableItemQualityValue(itemDetails: ITemplateItem, repairable: Repairable, item: Item): number { // Edge case, max durability is below durability - if (repairable.Durability < repairable.MaxDurability) + if (repairable.Durability > repairable.MaxDurability) { this.logger.warning(`Max durability: ${repairable.MaxDurability} for item id: ${item._id} was below Durability: ${repairable.Durability}, adjusting values to match`); repairable.MaxDurability = repairable.Durability;