mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 23:33:12 +09:00
Fully specify mod pack Factorio version
Remove support for major only versions of Factorio being specified in mod packs.
This commit is contained in:
1 parent
53a5d7ea6f
commit
660d0f08a1
3 files changed
+11
-11
No files matched your search
@@ -991,8 +991,8 @@ modPackCommands.add(new libCommand.Command({
|
||||
modPack.name = args.name;
|
||||
if (args.description) { modPack.description = args.description; }
|
||||
if (args.factorioVersion) {
|
||||
if (!/^\d+\.\d+(\.\d+)?$/.test(args.factorioVersion)) {
|
||||
throw new libErrors.CommandError("factorio-version must match the format digit.digit[.digit]");
|
||||
if (!/^\d+\.\d+\.\d+?$/.test(args.factorioVersion)) {
|
||||
throw new libErrors.CommandError("factorio-version must match the format digit.digit.digit");
|
||||
}
|
||||
modPack.factorioVersion = args.factorioVersion;
|
||||
}
|
||||
@@ -1031,8 +1031,8 @@ modPackCommands.add(new libCommand.Command({
|
||||
if (args.name) { modPack.name = args.name; }
|
||||
if (args.description) { modPack.description = args.description; }
|
||||
if (args.factorioVersion) {
|
||||
if (!/^\d+\.\d+(\.\d+)?$/.test(args.factorioVersion)) {
|
||||
throw new libErrors.CommandError("factorio-version must match the format digit.digit[.digit]");
|
||||
if (!/^\d+\.\d+\.\d+?$/.test(args.factorioVersion)) {
|
||||
throw new libErrors.CommandError("factorio-version must match the format digit.digit.digit");
|
||||
}
|
||||
modPack.factorioVersion = args.factorioVersion;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user