fix(player/abilities): remove flying debug code (#272)

* fix(player/abilities): only set `allow_flying` for Creative mode.
This commit is contained in:
DataModel
2024-11-14 12:06:58 -06:00
committed by GitHub
parent 711e16528a
commit 653caa0a30

View File

@@ -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;