Skip to content

Commit a4eefdf

Browse files
committed
Bump version. Also query uuid from --session
1 parent fc47c40 commit a4eefdf

File tree

6 files changed

+19
-14
lines changed

6 files changed

+19
-14
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
def ENV = System.getenv()
88

99
group = 'org.mcphackers'
10-
version = '1.1.1'
10+
version = '1.1.2'
1111
if(!ENV.RELEASE.equals('1')) {
1212
project.version += '-SNAPSHOT'
1313
}

doc/org.mcphackers.launchwrapper.fabric.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"formatVersion": 1,
33
"name": "LaunchWrapper Fabric Compat",
44
"uid": "org.mcphackers.launchwrapper.fabric",
5-
"version": "1.1",
5+
"version": "1.1.1",
66
"libraries": [
77
{
8-
"name": "org.mcphackers:launchwrapper-fabric:1.1",
8+
"name": "org.mcphackers:launchwrapper-fabric:1.1.1",
99
"url": "https://maven.glass-launcher.net/releases/"
1010
}
1111
],

doc/org.mcphackers.launchwrapper.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
],
55
"libraries": [
66
{
7-
"name": "org.mcphackers:launchwrapper:1.1",
7+
"name": "org.mcphackers:launchwrapper:1.1.1",
88
"url": "https://maven.glass-launcher.net/releases/"
99
},
1010
{
@@ -30,5 +30,5 @@
3030
"formatVersion": 1,
3131
"name": "LaunchWrapper",
3232
"uid": "org.mcphackers.launchwrapper",
33-
"version": "1.1"
33+
"version": "1.1.1"
3434
}

doc/org.mcphackers.launchwrapper.micromixin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"formatVersion": 1,
33
"name": "LaunchWrapper Micromixin",
44
"uid": "org.mcphackers.launchwrapper.micromixin",
5-
"version": "1.1",
5+
"version": "1.1.1",
66
"libraries": [
77
{
8-
"name": "org.mcphackers:launchwrapper-micromixin:1.1",
8+
"name": "org.mcphackers:launchwrapper-micromixin:1.1.1",
99
"url": "https://maven.glass-launcher.net/releases/"
1010
},
1111
{

src/main/java/org/mcphackers/launchwrapper/Launch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public class Launch {
88

9-
public static final String VERSION = "1.1.1";
9+
public static final String VERSION = "1.1.2";
1010
public static final Logger LOGGER = new Logger();
1111

1212
/**

src/main/java/org/mcphackers/launchwrapper/LaunchConfig.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,20 @@ public LaunchConfig(String[] args) {
185185
// Resolve profile UUID if we only provide username
186186
uuid.set(MojangSkinProvider.getUUIDfromName(username.get()));
187187
}
188-
if (uuid.get() == null) {
189-
// If uuid is still null, generate random one (Fixes LAN play when there is no internet connection)
190-
uuid.set(UUID.randomUUID().toString().replace("-", ""));
191-
}
192-
if (accessToken.get() == null && session.get() != null && session.get().startsWith("token:")) {
188+
if (session.get() != null && session.get().startsWith("token:")) {
193189
// Parse the session ID for the access token if we don't have it
194190
// 'token:<ACCESS_TOKEN>:<UUID>'
195191
String[] token = session.get().split(":");
196-
accessToken.set(token[1]);
192+
if (accessToken.get() == null) {
193+
accessToken.set(token[1]);
194+
}
195+
if (uuid.get() == null) {
196+
uuid.set(token[2]);
197+
}
198+
}
199+
if (uuid.get() == null) {
200+
// If uuid is still null, generate random one (Fixes LAN play when there is no internet connection)
201+
uuid.set(UUID.randomUUID().toString().replace("-", ""));
197202
}
198203
}
199204

0 commit comments

Comments
 (0)