cleanup
This commit is contained in:
@@ -163,8 +163,8 @@ impl NetworkEnv<'_> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_server(state: Res<State<ClientState>>) -> bool {
|
pub fn is_server(env: NetworkEnv) -> bool {
|
||||||
matches!(**state, ClientState::Disconnected)
|
env.is_server()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_game_tick(on: On<SetGameTick>, mut tick: ResMut<GameTick>) {
|
fn set_game_tick(on: On<SetGameTick>, mut tick: ResMut<GameTick>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user