fix(item): item destroy not sending correctly

This commit is contained in:
Nova
2024-06-15 13:58:36 -04:00
parent e2c9e06cd3
commit 53979ce167
5 changed files with 38 additions and 15 deletions

View File

@@ -161,13 +161,15 @@ pub fn process_input() {
// Iterate over the distance links and send input to them
for (i, input_link) in input_links.into_iter().enumerate() {
let handler = input_link.handler.spatial.node().unwrap();
handler_input.entry(handler.id).or_insert_with(|| (handler.clone(), Vec::new(), Vec::new()));
handler_input
.entry(handler.id)
.or_insert_with(|| (handler.clone(), Vec::new(), Vec::new()));
let (_, methods, datas) = handler_input.get_mut(&handler.id).unwrap();
let method_alias = input_link
.handler
.method_aliases
.get(input_link.method.as_ref())
.get_from_aspect(input_link.method.as_ref())
.unwrap();
method_alias.set_enabled(true);
datas.push(input_link.serialize(