Merge branch 'development'

This commit is contained in:
Brianna 2020-04-08 14:40:31 -04:00
commit ea2778d1d6
2 changed files with 11 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<groupId>com.songoda</groupId>
<artifactId>EpicHeads</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>3.2.9</version>
<version>3.2.10</version>
<build>
<defaultGoal>clean install</defaultGoal>
<finalName>EpicHeads-${project.version}</finalName>
@ -85,6 +85,10 @@
<id>private</id>
<url>https://repo.songoda.com/artifactory/private/</url>
</repository>
<repository>
<id>public</id>
<url>https://repo.songoda.com/artifactory/public/</url>
</repository>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>

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