diff options
| author | Ryan Cao <70191398+ryanccn@users.noreply.github.com> | 2022-11-19 23:42:56 +0800 |
|---|---|---|
| committer | Ryan Cao <70191398+ryanccn@users.noreply.github.com> | 2022-11-19 23:42:56 +0800 |
| commit | f527958cb35b976d88e7037bda62762c1ffe6e13 (patch) | |
| tree | 8a2d8ce8c73217092feff7627e2a0eb7dce8a5d7 /launcher | |
| parent | b1bdc6f745d607af4dc1bb592003a538ee03f058 (diff) | |
| download | PrismLauncher-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.cpp | 2 |
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); } |
