mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancynpcs: Only use uuid if it's not null
This commit is contained in:
@@ -1 +1 @@
|
||||
2.5.0
|
||||
2.5.0.261
|
||||
@@ -158,7 +158,10 @@ public class SkinManagerImpl implements SkinManager, Listener {
|
||||
|
||||
String id = skin.getParsedIdentifier();
|
||||
if (SkinUtils.isUsername(id)) {
|
||||
id = UUIDFetcher.getUUID(id).toString();
|
||||
String uuid = UUIDFetcher.getUUID(id).toString();
|
||||
if (uuid != null) {
|
||||
id = uuid;
|
||||
}
|
||||
}
|
||||
if (id.equals(event.getId())) {
|
||||
event.getSkin().setIdentifier(skin.getIdentifier());
|
||||
|
||||
Reference in New Issue
Block a user