mirror of
https://github.com/zyllian/classics.git
synced 2025-01-18 03:32:41 -08:00
fix bug where server was telling clients they were operators always
This commit is contained in:
parent
614db37e38
commit
61e27247b7
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ use crate::{
|
||||||
client::ClientPacket, server::ServerPacket, ExtBitmask, PacketWriter, ARRAY_LENGTH,
|
client::ClientPacket, server::ServerPacket, ExtBitmask, PacketWriter, ARRAY_LENGTH,
|
||||||
EXTENSION_MAGIC_NUMBER,
|
EXTENSION_MAGIC_NUMBER,
|
||||||
},
|
},
|
||||||
player::{Player, PlayerType},
|
player::Player,
|
||||||
server::config::ServerProtectionMode,
|
server::config::ServerProtectionMode,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ async fn handle_stream_inner(
|
||||||
}
|
}
|
||||||
msg!("&dWelcome to the server! Enjoyyyyyy".to_string());
|
msg!("&dWelcome to the server! Enjoyyyyyy".to_string());
|
||||||
reply_queue.push(ServerPacket::UpdateUserType {
|
reply_queue.push(ServerPacket::UpdateUserType {
|
||||||
user_type: PlayerType::Operator,
|
user_type: player_type,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
ClientPacket::SetBlock {
|
ClientPacket::SetBlock {
|
||||||
|
|
Loading…
Add table
Reference in a new issue