🐛 Fix avoid uncacheable tiles (#6281)

This commit is contained in:
Alejandro Alonso 2025-04-16 10:59:24 +02:00 committed by GitHub
parent 25a44e1387
commit f3d13005b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 7 deletions

View file

@ -81,6 +81,10 @@ impl TileHashMap {
if let Some(shapes) = self.grid.get_mut(&tile) {
shapes.shift_remove(&id);
}
if let Some(tiles) = self.index.get_mut(&id) {
tiles.remove(&tile);
}
}
pub fn get_tiles_of(&mut self, shape_id: Uuid) -> Option<&HashSet<Tile>> {