despawn chat on death
This commit is contained in:
parent
28212c6316
commit
634482fb73
|
@ -101,11 +101,14 @@ pub fn handle_new_conversations(
|
|||
}
|
||||
|
||||
// no existing chats yet, let's create a new one
|
||||
commands.spawn(Chat {
|
||||
commands.spawn((
|
||||
Chat {
|
||||
id: id.to_string(),
|
||||
label: label.to_string(),
|
||||
timer: time.elapsed_seconds_f64(),
|
||||
});
|
||||
},
|
||||
world::DespawnOnPlayerDeath,
|
||||
));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue