From 61e27247b7c88c62f73686f40343d1b3fb9aa704 Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 24 Apr 2024 21:05:11 -0700 Subject: [PATCH] fix bug where server was telling clients they were operators always --- src/server/network.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/network.rs b/src/server/network.rs index fd51055..431d37c 100644 --- a/src/server/network.rs +++ b/src/server/network.rs @@ -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 {