aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorRyan Cao <70191398+ryanccn@users.noreply.github.com>2022-11-19 23:42:56 +0800
committerRyan Cao <70191398+ryanccn@users.noreply.github.com>2022-11-19 23:42:56 +0800
commitf527958cb35b976d88e7037bda62762c1ffe6e13 (patch)
tree8a2d8ce8c73217092feff7627e2a0eb7dce8a5d7 /launcher
parentb1bdc6f745d607af4dc1bb592003a538ee03f058 (diff)
downloadPrismLauncher-f527958cb35b976d88e7037bda62762c1ffe6e13.tar.gz
PrismLauncher-f527958cb35b976d88e7037bda62762c1ffe6e13.tar.bz2
PrismLauncher-f527958cb35b976d88e7037bda62762c1ffe6e13.zip
fix: check if packFormat is valid for resourcepack parsing
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/minecraft/mod/ResourcePack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/ResourcePack.cpp b/launcher/minecraft/mod/ResourcePack.cpp
index 9f46cd2c..1e9db596 100644
--- a/launcher/minecraft/mod/ResourcePack.cpp
+++ b/launcher/minecraft/mod/ResourcePack.cpp
@@ -117,5 +117,5 @@ bool ResourcePack::applyFilter(QRegularExpression filter) const
bool ResourcePack::valid() const
{
- return m_pack_format != 0;
+ return s_pack_format_versions.contains(m_pack_format);
}