diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/config/BukkitConfigManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/config/BukkitConfigManager.java index 18f5936b..5d08e3c7 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/config/BukkitConfigManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/config/BukkitConfigManager.java @@ -523,16 +523,18 @@ public class BukkitConfigManager extends ConfigManager { } }; }, 10_050, "nbt"); - this.registerItemParser(arg -> { - Section section = (Section) arg; - ArrayList editors = new ArrayList<>(); - ItemStackUtils.sectionToComponentEditor(section, editors); - return (item, context) -> { - for (ItemEditor editor : editors) { - editor.apply(((AbstractItem) item).getRTagItem(), context); - } - }; - }, 10_075, "components"); + if (VersionHelper.isVersionNewerThan1_20_5()) { + this.registerItemParser(arg -> { + Section section = (Section) arg; + ArrayList editors = new ArrayList<>(); + ItemStackUtils.sectionToComponentEditor(section, editors); + return (item, context) -> { + for (ItemEditor editor : editors) { + editor.apply(((AbstractItem) item).getRTagItem(), context); + } + }; + }, 10_075, "components"); + } } private void registerBuiltInEffectModifierParser() { diff --git a/core/src/main/resources/config.yml b/core/src/main/resources/config.yml index 427fa637..b8e42cfb 100644 --- a/core/src/main/resources/config.yml +++ b/core/src/main/resources/config.yml @@ -352,6 +352,8 @@ mechanics: material: BLACK_STAINED_GLASS_PANE display: name: ' ' + components: + minecraft:hide_tooltip: true # This section would take effect if you set "override-vanilla" to true # That also means vanilla mechanics for example lure enchantment # would no longer take effect, so you have to configure its effect in CustomFishing