Change Threshold logic for Seeding

This commit is contained in:
Skillet 2023-02-13 08:53:47 -05:00 committed by GitHub
parent 28ceb0d2bc
commit 067ffc766d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,8 @@ export default class DBLogPlayerTime extends DBLog {
);
}
this.seeding = info.a2sPlayerCount >= this.options.seedingThreshold ? false : true;
if(seeding === true && info.a2sPlayerCount >= this.options.seedingThreshold) this.seeding = false;
else if(seeding === false && info.a2sPlayerCount-20 < this.options.seedingThreshold) this.seeding = true;
}
async onPlayerConnected(info) {