mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
fix(player/abilities): remove flying debug code (#272)
* fix(player/abilities): only set `allow_flying` for Creative mode.
This commit is contained in:
@@ -194,16 +194,6 @@ impl World {
|
||||
false,
|
||||
))
|
||||
.await;
|
||||
|
||||
// player abilities
|
||||
// TODO: this is for debug purpose, remove later
|
||||
log::debug!("Sending player abilities to {}", player.gameprofile.name);
|
||||
{
|
||||
let mut abilities = player.abilities.lock().await;
|
||||
abilities.allow_flying = true;
|
||||
}
|
||||
player.send_abilties_update().await;
|
||||
|
||||
// permissions, i. e. the commands a player may use
|
||||
player.send_permission_lvl_update().await;
|
||||
client_cmd_suggestions::send_c_commands_packet(&player, command_dispatcher).await;
|
||||
|
||||
Reference in New Issue
Block a user