diff options
-rw-r--r-- | server/src/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/state.rs b/server/src/state.rs index 9086248a..9009d4a1 100644 --- a/server/src/state.rs +++ b/server/src/state.rs @@ -44,7 +44,7 @@ impl Server { ) -> Result<Vec<PacketC>, TrError> { if let Some(p) = get_packet_player(&packet) { if !self.connections.entry(conn).or_default().contains(&p) { - return Err(tre!("s.state.packet_sender_invalid")); + return Err(tre!("s.error.packet_sender_invalid")); } } let mut replies = Vec::new(); @@ -69,7 +69,7 @@ impl Server { } PacketS::Join { .. } => { if self.connections.entry(conn).or_default().len() > 8 { - return Err(tre!("s.state.conn_too_many_players")); + return Err(tre!("s.error.conn_too_many_players")); } } _ => (), |