Don't expose heartbeat to app

This commit is contained in:
Michael Bradley 2025-07-05 19:28:14 -04:00
parent e58629c2f1
commit 58795eb87e
Signed by: MichaelBradley
SSH key fingerprint: SHA256:o/aaeYtRubILK7OYYjYP12DmU7BsPUhKji1AgaQ+ge4
4 changed files with 7 additions and 6 deletions

View file

@ -4,7 +4,7 @@ use bevy::prelude::*;
use uuid::Uuid;
use super::{
io::{Config, handle_network_input, handle_network_output, heartbeat, timeouts},
io::{Config, handle_network_input, handle_network_output, heartbeat, timeout},
packet::{InboundPacket, OutboundPacket},
peer::{Peer, PeerChangeEvent, PeerMap, handle_new_peer, handle_peer_change},
queues::{NetworkReceive, NetworkSend},
@ -40,7 +40,7 @@ impl Plugin for NetIOPlugin {
)
.add_systems(
FixedUpdate,
(heartbeat, timeouts, handle_new_peer).run_if(in_state(NetworkState::MultiPlayer)),
(heartbeat, timeout, handle_new_peer).run_if(in_state(NetworkState::MultiPlayer)),
)
.add_systems(
FixedPostUpdate,