Skip to content

Commit

Permalink
Improved token image logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Feb 2, 2022
1 parent 3cf0710 commit 0b0d321
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/lib/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ export function getItemPileTokenImage(target, { data = false, items = false, cur
img = items.length > 0
? items[0].img
: currencies[0].img;
}else if(data.displayOne && numItems > 1){
img = pileDocument.actor.data.token.img;
}

if (data.isContainer) {
Expand Down

0 comments on commit 0b0d321

Please sign in to comment.