File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/org/mcphackers/launchwrapper Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 9
9
import java .util .LinkedHashMap ;
10
10
import java .util .List ;
11
11
import java .util .Map ;
12
+ import java .util .UUID ;
12
13
import java .util .regex .Pattern ;
13
14
14
15
import org .mcphackers .launchwrapper .protocol .skin .MojangSkinProvider ;
@@ -184,6 +185,10 @@ public LaunchConfig(String[] args) {
184
185
// Resolve profile UUID if we only provide username
185
186
uuid .set (MojangSkinProvider .getUUIDfromName (username .get ()));
186
187
}
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
+ }
187
192
if (accessToken .get () == null && session .get () != null && session .get ().startsWith ("token:" )) {
188
193
// Parse the session ID for the access token if we don't have it
189
194
// 'token:<ACCESS_TOKEN>:<UUID>'
You can’t perform that action at this time.
0 commit comments