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