Fix error on purchasing clothing from ragman

This commit is contained in:
Dev 2023-05-15 18:37:09 +01:00
parent 9f3954cbb2
commit ce63d5418b

View File

@ -89,7 +89,7 @@ export class CustomizationController
} }
const suitId = traderOffer.suiteId; const suitId = traderOffer.suiteId;
if (this.outfitAlreadyPurchased(sessionId, suitId)) if (this.outfitAlreadyPurchased(suitId, sessionId))
{ {
const suitDetails = db.templates.customization[suitId]; const suitDetails = db.templates.customization[suitId];
this.logger.error(this.localisationService.getText("customisation-item_already_purchased", {itemId: suitDetails._id, itemName: suitDetails._name})); this.logger.error(this.localisationService.getText("customisation-item_already_purchased", {itemId: suitDetails._id, itemName: suitDetails._name}));