From bafb3e45694c3d72fa410c059ed395e907779bc7 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 14 Feb 2024 14:04:30 +0000 Subject: [PATCH] Remove unnecessary pre SPT 3.6.x null check --- project/src/controllers/RagfairController.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/project/src/controllers/RagfairController.ts b/project/src/controllers/RagfairController.ts index 765f9fa2..03ee1229 100644 --- a/project/src/controllers/RagfairController.ts +++ b/project/src/controllers/RagfairController.ts @@ -244,12 +244,6 @@ export class RagfairController */ protected setTraderOfferPurchaseLimits(offer: IRagfairOffer, fullProfile: IAkiProfile): void { - // pre 3.6.x profiles lack this object, create it - if (!fullProfile.traderPurchases) - { - fullProfile.traderPurchases = {}; - } - // No trader found, create a blank record for them if (!fullProfile.traderPurchases[offer.user.id]) {