Cooperate with other heads plugins.
This commit is contained in:
parent
005a4934b8
commit
b4a871e10c
|
@ -33,7 +33,12 @@ public class ItemListeners implements Listener {
|
|||
|
||||
if (encodededStr == null) return;
|
||||
|
||||
String url = ItemUtils.getDecodedTexture(encodededStr);
|
||||
String url;
|
||||
try {
|
||||
url = ItemUtils.getDecodedTexture(encodededStr);
|
||||
} catch (Exception ignored) {
|
||||
return; // If reached the head was generated by another incompatible plugin.
|
||||
}
|
||||
|
||||
if (url == null) return;
|
||||
Optional<Head> optional = plugin.getHeadManager().getHeads().stream()
|
||||
|
|
Loading…
Reference in New Issue