SPIGOT-7486: Alternate approach to null profile names
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -60,7 +60,7 @@ public class CraftOfflinePlayer implements OfflinePlayer, ConfigurationSerializa
|
||||
}
|
||||
|
||||
// This might not match lastKnownName but if not it should be more correct
|
||||
if (profile.getName() != null) {
|
||||
if (!profile.getName().isEmpty()) {
|
||||
return profile.getName();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user