Fix resource sync

This commit is contained in:
Tipragot 2023-05-07 01:07:09 +02:00
parent 6c99d4948f
commit 37e5bee2a0

View file

@ -324,7 +324,7 @@ impl NetworkExt for App {
connection.send(&PhantomData::<R>);
}
};
self.add_system(update.run_if(resource_changed::<R>()))
self.add_system(update.run_if(resource_exists_and_changed::<R>()))
.add_system(send.run_if(resource_exists::<R>()))
.add_system(remove.run_if(resource_removed::<R>()))
}