Cooperate with other heads plugins.

This commit is contained in:
Brianna 2020-04-08 14:39:25 -04:00
parent 005a4934b8
commit b4a871e10c
1 changed files with 6 additions and 1 deletions

View File

@ -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()