9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-29 03:49:15 +00:00
This commit is contained in:
XiaoMoMi
2025-03-15 21:12:28 +08:00
parent d57a7fb66e
commit 831dffd5f7
14 changed files with 68 additions and 18 deletions

View File

@@ -270,6 +270,11 @@ public class BukkitItemManager extends AbstractItemManager<ItemStack> {
// TODO 1.20
}
// add it to category
if (section.containsKey("category")) {
this.plugin.itemBrowserManager().addExternalCategoryMember(id, MiscUtils.getAsStringList(section.get("category")).stream().map(Key::of).toList());
}
// model part, can be null
// but if it exists, either custom model data or item model should be configured
Map<String, Object> modelSection = MiscUtils.castToMap(section.get("model"), true);