From 7c6efc0641f726f794cbc39363c73a6e77d5da95 Mon Sep 17 00:00:00 2001 From: Josscoder Date: Sun, 19 Mar 2023 19:01:33 -0500 Subject: [PATCH] [Release] feat: write custom name --- src/main/java/josscoder/jkit/helper/Helper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/josscoder/jkit/helper/Helper.java b/src/main/java/josscoder/jkit/helper/Helper.java index 3276a6e..01ff2e5 100644 --- a/src/main/java/josscoder/jkit/helper/Helper.java +++ b/src/main/java/josscoder/jkit/helper/Helper.java @@ -59,6 +59,9 @@ public void registerKit(Kit kit, boolean serialize) { ConfigSection itemsSection = new ConfigSection(); kit.getItemList().forEach((index, item) -> { ConfigSection currentItemSection = new ConfigSection(); + if (item.hasCustomName()) { + currentItemSection.set("customName", item.getCustomName()); + } currentItemSection.set("data", itemToString(item)); currentItemSection.set("enchantments", enchantmentsToStringList(item.getEnchantments()));