Fix player offers being expired before checking if they were sold
This commit is contained in:
parent
40ea0735ef
commit
8853159b55
@ -61,10 +61,13 @@ export class RagfairCallbacks implements OnLoad, OnUpdate
|
||||
{
|
||||
// There is a flag inside this class that only makes it run once.
|
||||
this.ragfairServer.addPlayerOffers();
|
||||
await this.ragfairServer.update();
|
||||
// function below used to be split, merged
|
||||
|
||||
// Check player offers and mail payment to player if sold
|
||||
this.ragfairController.update();
|
||||
|
||||
// Process all offers / expire offers
|
||||
await this.ragfairServer.update();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -307,6 +307,9 @@ export class RagfairController
|
||||
return info.neededSearchId !== "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Check all profiles and sell player offers / send player money for listing if it sold
|
||||
*/
|
||||
public update(): void
|
||||
{
|
||||
for (const sessionID in this.saveServer.getProfiles())
|
||||
|
@ -523,7 +523,7 @@ export class InRaidHelper
|
||||
|
||||
// Add the new items
|
||||
serverProfile.Inventory.items = [...postRaidProfile.Inventory.items, ...serverProfile.Inventory.items];
|
||||
serverProfile.Inventory.fastPanel = postRaidProfile.Inventory.fastPanel;
|
||||
serverProfile.Inventory.fastPanel = postRaidProfile.Inventory.fastPanel; // Quick access items bar
|
||||
serverProfile.InsuredItems = insured;
|
||||
|
||||
return serverProfile;
|
||||
|
Loading…
Reference in New Issue
Block a user