Neighbours of background tiles are recalculated now

This commit is contained in:
Mal 2025-05-17 01:10:57 +02:00
parent e0f93e4017
commit 0175246268

View File

@ -207,6 +207,7 @@ export default class Tilorswift
this.map.appendChild(this.level.terrain.getElement()); this.map.appendChild(this.level.terrain.getElement());
this.tilesetPicker.reloadTileset(this.tileset); this.tilesetPicker.reloadTileset(this.tileset);
this.backgroundPicker.reloadTileset(this.tileset);
this.initializeIntelligentBrushWidget(); this.initializeIntelligentBrushWidget();
} }
@ -229,6 +230,8 @@ export default class Tilorswift
addBackground(field) addBackground(field)
{ {
field.setIndex(this.level.terrain.brushTileIndex); field.setIndex(this.level.terrain.brushTileIndex);
this.updateNeighbours(field);
} }
updateNeighbours(field) updateNeighbours(field)