mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Don't use a random UUID. Should fix a protocol crash
This commit is contained in:
parent
ef58b5183a
commit
0ebfe0a776
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ public class ReflectionManager {
|
|||
public static Object getGameProfile(UUID uuid, String playerName) {
|
||||
try {
|
||||
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) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue