mirror of
https://github.com/GeyserMC/PackConverter.git
synced 2025-12-21 07:49:17 +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");
|
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);
|
BedrockResourcePack bedrockResourcePack = new BedrockResourcePack(this.tmpDir);
|
||||||
|
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user