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
|
||||||
@@ -157,8 +157,11 @@ public class SkinManagerImpl implements SkinManager, Listener {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
String id = skin.getParsedIdentifier();
|
String id = skin.getParsedIdentifier();
|
||||||
if(SkinUtils.isUsername(id)) {
|
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())) {
|
if (id.equals(event.getId())) {
|
||||||
event.getSkin().setIdentifier(skin.getIdentifier());
|
event.getSkin().setIdentifier(skin.getIdentifier());
|
||||||
|
|||||||
Reference in New Issue
Block a user