From 1cc78da15115727723103b224c6cbb51a72941f3 Mon Sep 17 00:00:00 2001 From: Sascha Wise Date: Mon, 13 Nov 2023 09:52:26 -0800 Subject: [PATCH] bump bevy_spectator to 0.4 and fix example warning --- Cargo.toml | 2 +- examples/splitscreen.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a8b041f..144673d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ bevy_atmosphere_macros = { path = "macros", version = "0.2.1" } cfg-if = "1.0" [dev-dependencies] -bevy_spectator = "0.3" +bevy_spectator = "0.4" bevy = { version = "0.12", features = ["bevy_core_pipeline", "x11"] } [features] diff --git a/examples/splitscreen.rs b/examples/splitscreen.rs index c1fdac3..aba5e03 100644 --- a/examples/splitscreen.rs +++ b/examples/splitscreen.rs @@ -116,7 +116,7 @@ fn set_camera_viewports( // We need to dynamically resize the camera's viewports whenever the window size changes // so then each camera always takes up half the screen. // A resize_event is sent when the window is first created, allowing us to reuse this system for initial setup. - for resize_event in resize_events.iter() { + for resize_event in resize_events.read() { let window = windows.get(resize_event.window).unwrap(); let mut left_camera = left_camera.single_mut(); left_camera.viewport = Some(Viewport {