fix(item): item destroy not sending correctly
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user