Fix issue spotted by Shibdib
where player flea offers aren't taking into account globals time listing value
This commit is contained in:
parent
64334339b3
commit
d2f6a16312
@ -276,8 +276,9 @@ export class RagfairOfferGenerator
|
|||||||
{
|
{
|
||||||
if (this.ragfairServerHelper.isPlayer(userID))
|
if (this.ragfairServerHelper.isPlayer(userID))
|
||||||
{
|
{
|
||||||
// Player offer
|
// Player offer = current time + offerDurationTimeInHour;
|
||||||
return this.timeUtil.getTimestamp() + Math.round(12 * TimeUtil.oneHourAsSeconds);
|
const offerDurationTimeHours = this.databaseServer.getTables().globals.config.RagFair.offerDurationTimeInHour;
|
||||||
|
return this.timeUtil.getTimestamp() + Math.round(offerDurationTimeHours * TimeUtil.oneHourAsSeconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.ragfairServerHelper.isTrader(userID))
|
if (this.ragfairServerHelper.isTrader(userID))
|
||||||
|
Loading…
Reference in New Issue
Block a user