aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/DataPack.cpp
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-07-08 00:14:05 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-07-08 00:14:05 +0300
commitbc2940e16a8a7839a120a45be9232b5adebbe751 (patch)
tree5952ce6503d0a084b7b44c16441caf56999ce303 /launcher/minecraft/mod/DataPack.cpp
parentcf2393a50966f8dc84720f7d44538b0cb7649d46 (diff)
parent1131038fdb0093ef9c732b18d699b6176fc6d82c (diff)
downloadPrismLauncher-bc2940e16a8a7839a120a45be9232b5adebbe751.tar.gz
PrismLauncher-bc2940e16a8a7839a120a45be9232b5adebbe751.tar.bz2
PrismLauncher-bc2940e16a8a7839a120a45be9232b5adebbe751.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into settings
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 };