bump version to v0.4.3 + fix max and min mod versions

This commit is contained in:
HJfod 2022-10-11 16:22:59 +03:00
parent d636f7d536
commit 1b90149227
2 changed files with 13 additions and 3 deletions
VERSION
loader/src/load

View file

@ -1 +1 @@
0.4.2
0.4.3

View file

@ -439,11 +439,21 @@ size_t Loader::getFieldIndexForClass(size_t hash) {
}
VersionInfo Loader::minModVersion() {
return { 0, 4, 0 };
// patches are always backwards-compatible. if not, we have failed
return VersionInfo {
Loader::getVersion().getMajor(),
Loader::getVersion().getMinor(),
0,
};
}
VersionInfo Loader::maxModVersion() {
return Loader::getVersion();
// patches are always backwards-compatible. if not, we have failed
return VersionInfo {
Loader::getVersion().getMajor(),
Loader::getVersion().getMinor(),
99999999,
};
}
bool Loader::supportedModVersion(VersionInfo const& version) {