aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/DataPack.cpp
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-07-10 16:25:15 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-07-10 16:25:15 +0300
commit35ccfdb7996ba727039ad2c0ab2974a49eecb6cc (patch)
tree2ef737788a9a0d5c6e810373371c2497f6e1c59c /launcher/minecraft/mod/DataPack.cpp
parent6d758795af8a414d13db4951e3e9ed60af7091fd (diff)
parent91c9082d19b957c3295e7a0b5bc6add71e6459b8 (diff)
downloadPrismLauncher-35ccfdb7996ba727039ad2c0ab2974a49eecb6cc.tar.gz
PrismLauncher-35ccfdb7996ba727039ad2c0ab2974a49eecb6cc.tar.bz2
PrismLauncher-35ccfdb7996ba727039ad2c0ab2974a49eecb6cc.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into catpacks
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/minecraft/mod/DataPack.cpp')
-rw-r--r--launcher/minecraft/mod/DataPack.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/DataPack.cpp b/launcher/minecraft/mod/DataPack.cpp
index ca75cd2a..c5754638 100644
--- a/launcher/minecraft/mod/DataPack.cpp
+++ b/launcher/minecraft/mod/DataPack.cpp
@@ -74,6 +74,7 @@ std::pair<int, bool> DataPack::compare(const Resource& other, SortType type) con
auto res = Resource::compare(other, type);
if (res.first != 0)
return res;
+ break;
}
case SortType::PACK_FORMAT: {
auto this_ver = packFormat();
@@ -83,6 +84,7 @@ std::pair<int, bool> DataPack::compare(const Resource& other, SortType type) con
return { 1, type == SortType::PACK_FORMAT };
if (this_ver < other_ver)
return { -1, type == SortType::PACK_FORMAT };
+ break;
}
}
return { 0, false };