Fix error for multiname length, don't refuse old bossbars

This commit is contained in:
libraryaddict
2020-06-22 19:32:41 +12:00
parent e317f676b3
commit 3ebf9cce65
2 changed files with 6 additions and 4 deletions

View File

@@ -704,16 +704,18 @@ public class DisguiseUtilities {
}
public static WrappedGameProfile getGameProfile(String playerName) {
playerName = playerName.toLowerCase();
if (!hasGameProfile(playerName))
return null;
if (!profileCache.exists())
profileCache.mkdirs();
File file = new File(profileCache, playerName.toLowerCase());
File file = new File(profileCache, playerName);
if (!file.exists()) {
cachedNames.remove(playerName.toLowerCase());
cachedNames.remove(playerName);
return null;
}