Fix possess bug, remove commented code, drain controller events

This commit is contained in:
Imbris
2019-10-20 20:59:53 -04:00
committed by Imbris
parent 966b2bfbff
commit a200dafd45
5 changed files with 5 additions and 5 deletions

View File

@ -366,7 +366,7 @@ impl<'a> System<'a> for Sys {
}
// Process controller events
for event in std::mem::replace(&mut controller.events, Vec::new()) {
for event in controller.events.drain(..) {
match event {
ControlEvent::Mount(mountee_uid) => {
if let Some(mountee_entity) =