Misc optimization

If we're starting from 0, pointless to ask plugins what they prefer.
This commit is contained in:
JustArchi
2021-01-03 22:12:17 +01:00
parent e2c7671f00
commit 32a8f4bed4

View File

@@ -66,7 +66,7 @@ namespace ArchiSteamFarm.Plugins {
internal static async Task<uint> GetChangeNumberToStartFrom() {
uint lastChangeNumber = ASF.GlobalDatabase?.LastChangeNumber ?? 0;
if (ActivePlugins == null) {
if ((lastChangeNumber == 0) || (ActivePlugins == null)) {
return lastChangeNumber;
}