FIxed plate removal code not actually removing plates

This commit is contained in:
Dev 2024-06-30 23:02:17 +01:00
parent 1ba6cbf2bd
commit 843455602d

View File

@ -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;
}