Hello, I'm currently working on a custom Lucky Block plugin and whenever I deserialize the LuckyBlock Skull item it returns a Steve Skull. Would I need to make a custom deserialize/serializing methods or is there a way to fix this? (Note: Serializing/deserializing any other item works perfectly fine)
Java:
dataFile.getConfig().set("LuckyBlockItem", adapter.toJson(LuckyBlock.getLuckyBlock() == null ? "" : LuckyBlock.getLuckyBlock().serialize()));
dataFile.saveConfig();
Java:
if (dataFile.getConfig().getString("LuckyBlockItem") != null) {
Map<String, Object> serializedItem = adapter.fromJson(dataFile.getConfig().getString("LuckyBlockItem"), new TypeToken<Map<String, Object>>() {
}.getType());
if (serializedItem != null && !serializedItem.isEmpty())
LuckyBlock.setLuckyBlock(ItemStack.deserialize(serializedItem));
}