mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-20 07:29:23 +00:00
Hide tooltip for 1.20.5+
This commit is contained in:
@@ -523,6 +523,7 @@ public class BukkitConfigManager extends ConfigManager {
|
||||
}
|
||||
};
|
||||
}, 10_050, "nbt");
|
||||
if (VersionHelper.isVersionNewerThan1_20_5()) {
|
||||
this.registerItemParser(arg -> {
|
||||
Section section = (Section) arg;
|
||||
ArrayList<ItemEditor> editors = new ArrayList<>();
|
||||
@@ -534,6 +535,7 @@ public class BukkitConfigManager extends ConfigManager {
|
||||
};
|
||||
}, 10_075, "components");
|
||||
}
|
||||
}
|
||||
|
||||
private void registerBuiltInEffectModifierParser() {
|
||||
this.registerEffectModifierParser(object -> {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user