Skip to content

Commit

Permalink
fix assets_.xml check
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobharder committed Dec 25, 2022
1 parent 9a3ea26 commit 5b5e14f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to the "anno-modding-tools" extension will be documented in

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [Unreleased]
## [1.6.5]

- Copy `assets_.xml` to `assets.xml` to allow fallback ModOps for wrong installations

Expand Down
2 changes: 1 addition & 1 deletion src/builder/converter/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class AssetsConverter extends Converter {
const dontCopy = path.join(outFolder, "data/config/export/main/asset/assets_.xml");

try {
if (fs.existsSync(path.dirname(sourceFile))) {
if (fs.existsSync(sourceFile)) {
if (!fs.existsSync(path.dirname(targetFile))) {
fs.mkdirSync(path.dirname(targetFile), { recursive: true });
}
Expand Down

0 comments on commit 5b5e14f

Please sign in to comment.