fancynpcs: Only use uuid if it's not null

This commit is contained in:
Oliver
2025-05-17 10:18:52 +02:00
parent bc698903e0
commit b2352f65fe
2 changed files with 6 additions and 3 deletions

View File

@@ -1 +1 @@
2.5.0
2.5.0.261

View File

@@ -157,8 +157,11 @@ public class SkinManagerImpl implements SkinManager, Listener {
continue;
String id = skin.getParsedIdentifier();
if(SkinUtils.isUsername(id)) {
id = UUIDFetcher.getUUID(id).toString();
if (SkinUtils.isUsername(id)) {
String uuid = UUIDFetcher.getUUID(id).toString();
if (uuid != null) {
id = uuid;
}
}
if (id.equals(event.getId())) {
event.getSkin().setIdentifier(skin.getIdentifier());