This commit is contained in:
2025-12-18 21:18:36 -05:00
parent 83729e2699
commit 1eb88cc1a6

View File

@@ -163,8 +163,8 @@ impl NetworkEnv<'_> {
}
}
pub fn is_server(state: Res<State<ClientState>>) -> bool {
matches!(**state, ClientState::Disconnected)
pub fn is_server(env: NetworkEnv) -> bool {
env.is_server()
}
fn set_game_tick(on: On<SetGameTick>, mut tick: ResMut<GameTick>) {