Don't use a random UUID. Should fix a protocol crash
This commit is contained in:
parent
ef58b5183a
commit
0ebfe0a776
@ -209,7 +209,7 @@ public class ReflectionManager {
|
|||||||
public static Object getGameProfile(UUID uuid, String playerName) {
|
public static Object getGameProfile(UUID uuid, String playerName) {
|
||||||
try {
|
try {
|
||||||
return Class.forName("net.minecraft.util.com.mojang.authlib.GameProfile").getConstructor(String.class, String.class)
|
return Class.forName("net.minecraft.util.com.mojang.authlib.GameProfile").getConstructor(String.class, String.class)
|
||||||
.newInstance(uuid != null ? uuid.toString() : UUID.randomUUID().toString(), playerName);
|
.newInstance(uuid != null ? uuid.toString() : "", playerName);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user