Don't use a random UUID. Should fix a protocol crash

This commit is contained in:
libraryaddict 2014-04-11 04:34:37 +12:00
parent ef58b5183a
commit 0ebfe0a776

View File

@ -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();
} }