mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Maintain strict tagging of GameVersion
This commit is contained in:
8 files changed
+37
-45
No files matched your search
@@ -405,7 +405,7 @@ function DownloadDependenciesButton(props: DownloadDependenciesProps) {
|
||||
missing.map(mod => ({
|
||||
name: mod.name,
|
||||
// mod.version is the raw version; the equality bound must be canonical.
|
||||
version: new lib.ModVersionEquality("=", lib.normaliseGameVersion(mod.version)!),
|
||||
version: new lib.ModVersionEquality("=", mod.normalisedVersion),
|
||||
})),
|
||||
factorioVersion,
|
||||
)
|
||||
|
||||
@@ -170,7 +170,7 @@ function SearchModsButton() {
|
||||
if (modVersion) {
|
||||
control.send(
|
||||
new lib.ModPortalDownloadRequest(
|
||||
[{ name: modName, version: new lib.ModVersionEquality("=", lib.normaliseGameVersion(modVersion)!)}],
|
||||
[{ name: modName, version: new lib.ModVersionEquality("=", lib.normaliseGameVersion(modVersion))}],
|
||||
portalFactorioVersion
|
||||
)
|
||||
).then(() => {
|
||||
|
||||
Reference in new issue
Block a user