Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ozelot379 committed Aug 7, 2019
1 parent ea62d78 commit d90fee5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [1.6.1]
- Fix

## [1.6.0]
- Refactoring output zip

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ozelot379/convert-minecraft-java-texture-to-bedrock",
"productName": "ConvertMinecraftJavaTextureToBedrock",
"version": "1.6.0",
"version": "1.6.1",
"description": "CLI version for convert Minecraft Java texture packs to Minecraft Bedrock texture packs",
"keywords": [
"Minecraft",
Expand Down
8 changes: 5 additions & 3 deletions src/Output/ZipOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ class ZipOutput extends AbstractOutput {
if (parent === ".") {
parent = "";
}
parent += "/";
if (this.zip.getEntry(parent) === null) {
this.zip.addFile(parent, "")
if (parent !== "") {
parent += "/";
if (this.zip.getEntry(parent) === null) {
this.zip.addFile(parent, "")
}
}

this.zip.addFile(file, data);
Expand Down

0 comments on commit d90fee5

Please sign in to comment.