diff --git a/tilorswift/js/Tilorswift.js b/tilorswift/js/Tilorswift.js index db399ae..aa89243 100644 --- a/tilorswift/js/Tilorswift.js +++ b/tilorswift/js/Tilorswift.js @@ -207,6 +207,7 @@ export default class Tilorswift this.map.appendChild(this.level.terrain.getElement()); this.tilesetPicker.reloadTileset(this.tileset); + this.backgroundPicker.reloadTileset(this.tileset); this.initializeIntelligentBrushWidget(); } @@ -229,6 +230,8 @@ export default class Tilorswift addBackground(field) { field.setIndex(this.level.terrain.brushTileIndex); + + this.updateNeighbours(field); } updateNeighbours(field)