Port the code to Foundry 0.8.5

This commit is contained in:
2021-05-04 22:48:11 +02:00
parent 42529d3df6
commit 81f455c63a
6 changed files with 23 additions and 26 deletions

View File

@@ -20,9 +20,9 @@ export function performMigrations() {
// Make a dictionary that maps all door ids to their scenes
const walls = game.scenes.reduce((dict, scene) => {
scene.data.walls.forEach(wall => {
if (!wall.door)
if (!wall.data.door)
return
dict[wall._id] = scene.id
dict[wall.id] = scene.id;
})
return dict
}, {})