Remove unnecessary pre SPT 3.6.x null check

This commit is contained in:
Dev 2024-02-14 14:04:30 +00:00
parent 22d158f8a4
commit bafb3e4569

View File

@ -244,12 +244,6 @@ export class RagfairController
*/ */
protected setTraderOfferPurchaseLimits(offer: IRagfairOffer, fullProfile: IAkiProfile): void 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 // No trader found, create a blank record for them
if (!fullProfile.traderPurchases[offer.user.id]) if (!fullProfile.traderPurchases[offer.user.id])
{ {