Skip to content

Commit

Permalink
1.0.7 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IronMonk88 committed Mar 30, 2021
1 parent 3cda8e6 commit 3d1bbb9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Added function to try and copy old data from TerrainLayer

Changed the way environment and terraintype are handled to better override

Added verbose option

Added reduce functionality

Added refresh when show text is changed

#Version 1.0.16
Fixed an issue with ignoring environment

Expand Down
8 changes: 7 additions & 1 deletion classes/terrainlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,4 +676,10 @@ export class TerrainLayer extends PlaceablesLayer {
object.destroy({ children: true });
canvas.scene.data.terrain.findSplice(t => { return t._id == id; });
}
}

refresh() {
for (let terrain of this.placeables) {
terrain.refresh();
}
}
}
5 changes: 4 additions & 1 deletion js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export const registerSettings = function () {
scope: "world",
config: true,
default: false,
type: Boolean
type: Boolean,
onChange: () => {
canvas.terrain.refresh();
}
});
game.settings.register(modulename, 'tokens-cause-difficult', {
name: "EnhancedTerrainLayer.tokens-cause-difficult.name",
Expand Down

0 comments on commit 3d1bbb9

Please sign in to comment.