Remove unnecessary pre SPT 3.6.x null check
This commit is contained in:
parent
22d158f8a4
commit
bafb3e4569
@ -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])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user