mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 14:00:21 +00:00
Event Diff: move version check closer to init
Sanity Check method checks the objects that expose the flagwork, which no longer is always a save file.
This commit is contained in:
parent
bc7118b493
commit
2259551ace
1 changed files with 5 additions and 3 deletions
|
@ -35,6 +35,11 @@ public sealed class EventBlockDiff<TSave, TWorkValue> : IEventWorkDiff
|
||||||
Message = DifferentGameGroup;
|
Message = DifferentGameGroup;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (s1.Version != s2.Version)
|
||||||
|
{
|
||||||
|
Message = DifferentVersion;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Diff(t1, t2);
|
Diff(t1, t2);
|
||||||
}
|
}
|
||||||
|
@ -53,9 +58,6 @@ public sealed class EventBlockDiff<TSave, TWorkValue> : IEventWorkDiff
|
||||||
if (s1.GetType() != s2.GetType())
|
if (s1.GetType() != s2.GetType())
|
||||||
return DifferentGameGroup;
|
return DifferentGameGroup;
|
||||||
|
|
||||||
if (s1 is not IVersion i1 || s2 is not IVersion i2 || i1.Version != i2.Version)
|
|
||||||
return DifferentVersion;
|
|
||||||
|
|
||||||
return Valid;
|
return Valid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue