CryptoMorin / XSeries

Library for cross-version Minecraft Bukkit support and various efficient API methods.
https://www.spigotmc.org/threads/378136/
MIT License
403 stars 126 forks source link

1.19 support for SkullUtils ? #182

Closed SwartZCoding closed 2 years ago

SwartZCoding commented 2 years ago

Description Since i upgrade to 1.19 version, SkullUtils didn't work anymore. (Don't test other feature atm)

Version Current: git-Purpur-1670 (MC: 1.19)*

java.lang.ClassCastException: class org.bukkit.craftbukkit.v1_19_R1.inventory.CraftMetaItem cannot be cast to class org.bukkit.inventory.meta.SkullMeta (org.bukkit.craftbukkit.v1_19_R1.inventory.CraftMetaItem and org.bukkit.inventory.meta.SkullMeta are in unnamed module of loader java.net.URLClassLoader @67424e82) at fr.remainslands.libs.utils.SkullUtils.applySkin(SkullUtils.java:125)~[RemainsLib-1.0.jar:?]

Error on this cast : SkullMeta meta = (SkullMeta) head;

I use the latest SkullUtils class.

CryptoMorin commented 2 years ago

That just means whatever item meta that was passed to that method wasn't for a skull.