diff --git a/build.gradle.kts b/build.gradle.kts index 0bd4935..159fe62 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("java") } -version = "2.6.14" +version = "2.6.15" allprojects { repositories { @@ -14,6 +14,5 @@ allprojects { maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") maven("https://repo.fancyplugins.de/releases") maven("https://jitpack.io") - maven("https://ci.codemc.io/job/Tr7zw/job/Item-NBT-API/") } } \ No newline at end of file diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 2a7719a..5a7b2e5 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -20,8 +20,7 @@ dependencies { implementation("redis.clients:jedis:5.1.3") implementation("com.zaxxer:HikariCP:5.1.0") implementation("org.apache.commons:commons-lang3:3.12.0") - //implementation("de.tr7zw:item-nbt-api:2.14.0") - implementation("de.tr7zw:item-nbt-api:2.14.1-SNAPSHOT") + implementation("de.tr7zw:item-nbt-api:2.14.1") implementation("net.kyori:adventure-api:4.17.0") implementation("net.kyori:adventure-platform-bukkit:4.3.3") } diff --git a/core/src/main/java/fr/aerwyn81/headblocks/hooks/HeadDatabaseHook.java b/core/src/main/java/fr/aerwyn81/headblocks/hooks/HeadDatabaseHook.java index 7b5289d..d8fb111 100644 --- a/core/src/main/java/fr/aerwyn81/headblocks/hooks/HeadDatabaseHook.java +++ b/core/src/main/java/fr/aerwyn81/headblocks/hooks/HeadDatabaseHook.java @@ -57,9 +57,12 @@ public void loadHeadsHDB() { .map(h -> (HBHeadHDB) h) .filter(h -> !h.isLoaded()) .forEach(h -> { - HeadUtils.createHead(h, headDatabaseAPI.getBase64(h.getId())); - h.setLoaded(true); - HeadBlocks.log.sendMessage(MessageUtils.colorize("&aLoaded HeadDatabase head id &e" + h.getId() + ".")); + var texture = headDatabaseAPI.getBase64(h.getId()); + if (!texture.isEmpty()) { + HeadUtils.createHead(h, texture); + h.setLoaded(true); + HeadBlocks.log.sendMessage(MessageUtils.colorize("&aLoaded HeadDatabase head id &e" + h.getId() + ".")); + } }); } }