Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit 16959d8

Browse files
authored
Merge pull request #13 from minecraft-essentials/fix-library
Fixes library
2 parents e560d81 + 975c41b commit 16959d8

8 files changed

Lines changed: 4 additions & 48 deletions

File tree

.vscode/launch.json

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,6 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
{
8-
"type": "lldb",
9-
"request": "launch",
10-
"name": "Debug executable 'temp'",
11-
"cargo": {
12-
"args": [
13-
"build",
14-
"--bin=temp",
15-
"--package=temp"
16-
],
17-
"filter": {
18-
"name": "temp",
19-
"kind": "bin"
20-
}
21-
},
22-
"args": [],
23-
"cwd": "${workspaceFolder}"
24-
},
25-
{
26-
"type": "lldb",
27-
"request": "launch",
28-
"name": "Debug unit tests in executable 'temp'",
29-
"cargo": {
30-
"args": [
31-
"test",
32-
"--no-run",
33-
"--bin=temp",
34-
"--package=temp"
35-
],
36-
"filter": {
37-
"name": "temp",
38-
"kind": "bin"
39-
}
40-
},
41-
"args": [],
42-
"cwd": "${workspaceFolder}"
43-
},
447
{
458
"type": "lldb",
469
"request": "launch",

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "minecraft-essentials"
3-
version = "0.2.10"
3+
version = "0.2.11"
44
keywords = ["Minecraft", "MinecraftClient"]
55
authors = ["Eveeifyeve <eveeg1971@gmail.com>"]
66
description = "A Package that gives all Minecraft client launchers essentials."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn main() {
9494
#### Acutal Minecraft Authentfication
9595

9696
> [!CAUTION]
97-
> This is currently in the [roadmap][Roadmap] for 0.2.11 currently it's not avalible.
97+
> This is currently in the [roadmap][Roadmap] for 0.2.12-14 currently it's not avalible.
9898
9999

100100
### Launching

src/custom/mojang.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ pub struct AuthInfo {
4646
#[derive(Debug, Deserialize)]
4747
struct MojangResponse {
4848
username: String,
49-
_roles: Vec<String>,
5049
access_token: String,
5150
token_type: String,
5251
expires_in: i32,
@@ -77,9 +76,6 @@ async fn tokeninternal(client: Client, body: Value) -> Result<AuthInfo, Box<dyn
7776
println!("Sorry, we ran into an error in authentication.");
7877
return Err("Invalid token type".into());
7978
}
80-
81-
println!("{:?}", response);
82-
8379
let access_token = response.access_token;
8480
let uuid = response.username;
8581
let expires_in = response.expires_in; // Ensure this is correctly set to the expiration time

src/custom/oauth.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ fn parse_info(data: &[u8]) -> Result<Info, OAuthError> {
142142
error,
143143
error_description,
144144
};
145-
println!("{:?}", info);
146-
147145
Ok(info)
148146
}
149147

src/custom/xbox.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ async fn xsts_internal(
140140
.headers(headers)
141141
.send()
142142
.await;
143+
143144
let std::result::Result::Ok(response) = result else {
144145
println!("Part 1");
145146
return Err(XTSError::ResponseError(

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ impl Oauth {
115115
client_secret,
116116
)
117117
.await?;
118-
119118
let xbox = xbox::xbl(&token.access_token).await?;
120119
let xts = xbox::xsts_token(&xbox.token, bedrock_relm).await?;
121120

@@ -240,7 +239,6 @@ impl DeviceCode {
240239
let token = code::authenticate_device(&self.device_code, &self.client_id).await?;
241240
let xbox = xbox::xbl(&token.token).await?;
242241
let xts = xbox::xsts_token(&xbox.token, bedrock_relm).await?;
243-
244242
if bedrock_relm {
245243
Ok(CustomAuthData {
246244
access_token: "null".to_string(),

0 commit comments

Comments
 (0)