backend: store damaged state in ConnectorData
This commit is contained in:
parent
7ff7edaa8f
commit
ada4e5a5f0
7 changed files with 33 additions and 16 deletions
|
|
@ -56,7 +56,7 @@ pub async fn visualize_damage(state: Rc<State>) {
|
|||
fn damage_all(state: &State) {
|
||||
for connector in state.connectors.lock().values() {
|
||||
if connector.connected.get() {
|
||||
connector.connector.damage();
|
||||
connector.damage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue