public static async Task HandleClientSettings(Client client, PacketReader reader) { //TODO: save these settings in Player string locale = await reader.ReadString(); byte viewDistance = await reader.ReadByte(); byte chatFlags = await reader.ReadByte(); byte difficulty = await reader.ReadByte(); bool cape = await reader.ReadBoolean(); }
private static async Task SetOnGround(Client client, PacketReader reader) { bool ground = await reader.ReadBoolean(); client.Player.OnGround = ground; //Console.WriteLine("Faling is {0}", ground); }