1
0
mirror of https://github.com/GeyserMC/PackConverter.git synced 2025-12-19 14:59:21 +00:00

Don't read zip file if not a zip file

This commit is contained in:
RednedEpic
2023-06-04 15:38:59 -05:00
parent 8f6f8cb529
commit f2813aa44d

View File

@@ -146,7 +146,7 @@ public class PackConverter {
throw new IllegalStateException("No converters have been added");
}
ResourcePack javaResourcePack = MinecraftResourcePackReader.minecraft().readFromZipFile(this.input);
ResourcePack javaResourcePack = this.compressed ? MinecraftResourcePackReader.minecraft().readFromZipFile(this.input) : MinecraftResourcePackReader.minecraft().readFromDirectory(this.input.toFile());
BedrockResourcePack bedrockResourcePack = new BedrockResourcePack(this.tmpDir);
int errors = 0;