StreamReceiver does not need to be mutable (#6119)

ResMut -> Res
This commit is contained in:
rustui 2022-09-28 17:39:36 +00:00
parent aa32a77fdd
commit 59f872647d

View File

@ -46,7 +46,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
}
// This system reads from the receiver and sends events to Bevy
fn read_stream(receiver: ResMut<StreamReceiver>, mut events: EventWriter<StreamEvent>) {
fn read_stream(receiver: Res<StreamReceiver>, mut events: EventWriter<StreamEvent>) {
for from_stream in receiver.try_iter() {
events.send(StreamEvent(from_stream));
}