Fix bug with asset manifest not including other users custom assets

This commit is contained in:
Mitchell McCaffrey 2021-06-10 16:12:32 +10:00
parent d996a81c96
commit 78461cb62f

View File

@ -69,13 +69,12 @@ function NetworkedMapAndTokens({ session }) {
const { owner } = map;
let processedTokens = new Set();
for (let tokenState of Object.values(mapState.tokens)) {
if (
tokenState.file &&
!processedTokens.has(tokenState.file) &&
tokenState.owner === owner
) {
if (tokenState.file && !processedTokens.has(tokenState.file)) {
processedTokens.add(tokenState.file);
assets[tokenState.file] = { id: tokenState.file, owner };
assets[tokenState.file] = {
id: tokenState.file,
owner: tokenState.owner,
};
}
}
if (map.type === "file") {