From 843455602dea5f533e405945130462f875d2a48a Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 30 Jun 2024 23:02:17 +0100 Subject: [PATCH] FIxed plate removal code not actually removing plates --- project/src/services/FenceService.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project/src/services/FenceService.ts b/project/src/services/FenceService.ts index f14325a6..ad97df23 100644 --- a/project/src/services/FenceService.ts +++ b/project/src/services/FenceService.ts @@ -1230,6 +1230,9 @@ export class FenceService // Chance to not add plate if (!this.randomUtil.getChance100(this.traderConfig.fence.chancePlateExistsInArmorPercent)) { + // Remove plate from armor + armorItemAndMods = armorItemAndMods + .filter((item) => item.slotId!.toLowerCase() !== plateSlot._name.toLowerCase()); continue; }