Fix Skull in pandalib-paper

This commit is contained in:
Marc Baloup 2022-08-04 03:11:20 +02:00
parent e16e294ff7
commit 6e4ec629b0
Signed by: marcbal
GPG Key ID: BBC0FE3ABC30B893

View File

@ -135,7 +135,7 @@ public enum Skull {
* @return itemstack
*/
public static ItemStack getFromSkinURL(String url, Chat name, List<Chat> lore) {
return getFromBase64String(Base64.getEncoder().encodeToString(String.format("{textures:{SKIN:{url:\"%s\"}}}", url).getBytes()), name, lore);
return getFromBase64String(Base64.getEncoder().encodeToString(String.format("{\"textures\":{\"SKIN\":{\"url\":\"%s\"}}}", url).getBytes()), name, lore);
}