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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user