spacemandev-git / fvtt-card-support

Adds programmatic deck support to FoundryVTT
MIT License
10 stars 10 forks source link

Solved Bug: Decks directory not found when appending a card. #65

Open JasonRVCC opened 3 years ago

JasonRVCC commented 3 years ago

When trying to append a card to a deck, I noticed that it was sending an error stating "Directory Decks does not exist."

I found the source of the issue at deck.js, line 493. let target = `Decks/${deckID}/`;

The target path is being set to Decks/${deckID}/, when it should be :

let target = `worlds/${game.world.name}/Decks/${deckID}/`;

Changing the line to the later fixed the issue.