Skip to content

Commit

Permalink
[Release] feat: write custom name
Browse files Browse the repository at this point in the history
  • Loading branch information
Josscoder committed Mar 20, 2023
1 parent 1880b6d commit 7c6efc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/josscoder/jkit/helper/Helper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()));

Expand Down

0 comments on commit 7c6efc0

Please sign in to comment.