fix bug where server was telling clients they were operators always

This commit is contained in:
Zoey 2024-04-24 21:05:11 -07:00
parent 614db37e38
commit 61e27247b7
No known key found for this signature in database
GPG key ID: 8611B896D1AAFAF2

View file

@ -18,7 +18,7 @@ use crate::{
client::ClientPacket, server::ServerPacket, ExtBitmask, PacketWriter, ARRAY_LENGTH,
EXTENSION_MAGIC_NUMBER,
},
player::{Player, PlayerType},
player::Player,
server::config::ServerProtectionMode,
};
@ -261,7 +261,7 @@ async fn handle_stream_inner(
}
msg!("&dWelcome to the server! Enjoyyyyyy".to_string());
reply_queue.push(ServerPacket::UpdateUserType {
user_type: PlayerType::Operator,
user_type: player_type,
});
}
ClientPacket::SetBlock {