diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-08 00:14:05 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-07-08 00:14:05 +0300 |
commit | bc2940e16a8a7839a120a45be9232b5adebbe751 (patch) | |
tree | 5952ce6503d0a084b7b44c16441caf56999ce303 /launcher/minecraft/mod/DataPack.cpp | |
parent | cf2393a50966f8dc84720f7d44538b0cb7649d46 (diff) | |
parent | 1131038fdb0093ef9c732b18d699b6176fc6d82c (diff) | |
download | PrismLauncher-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.cpp | 2 |
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 }; |