fix: ensure legacy texture pack is checking .zip file extension (#5284)
This commit is contained in:
@@ -14,6 +14,8 @@ export function createMultiFileDetectors(
|
||||
return {
|
||||
// Legacy texture pack (pre-1.6.1)
|
||||
legacyTexturePack: async (zip: JSZip): Promise<InferredVersionInfo | null> => {
|
||||
if (!rawFile.name.endsWith('.zip')) return null
|
||||
|
||||
const packTxt = zip.file('pack.txt')
|
||||
if (!packTxt) return null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user