Open SiverDX opened 1 year ago
Currently using this workaround:
@Overwrite
public EnchantmentCategory getOrBuildCustomCategory(final Enchantment enchantment, final Predicate<Item> canApplyTo) {
EnchantmentCategory enchantmentCategory;
try {
enchantmentCategory = this.customEnchantmentCategories.computeIfAbsent(enchantment, category -> ModServices.ABSTRACTIONS.createEnchantmentCategory(createCategoryName(category), canApplyTo));
} catch (IllegalArgumentException exception) {
TrialAndError.LOG.warn("Tried to create a duplicate enchantment category: [{}]", exception.getMessage());
enchantmentCategory = this.customEnchantmentCategories.get(enchantment);
}
return enchantmentCategory;
}
Got the following errors:
[23Oct2023 18:01:20.925] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_KNOCKBACK]
[23Oct2023 18:01:20.925] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_BANE_OF_ARTHROPODS]
[23Oct2023 18:01:20.925] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_LOOTING]
[23Oct2023 18:01:20.925] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_SMITE]
[23Oct2023 18:01:20.926] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_SHARPNESS]
[23Oct2023 18:01:20.926] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_FIRE_ASPECT]
[23Oct2023 18:01:20.926] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_MENDING]
[23Oct2023 18:01:20.973] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_THORNS]
[23Oct2023 18:01:20.973] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_FROST_WALKER]
[23Oct2023 18:01:20.973] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_PROTECTION]
[23Oct2023 18:01:20.973] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_BLAST_PROTECTION]
[23Oct2023 18:01:20.973] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_FIRE_PROTECTION]
[23Oct2023 18:01:20.973] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_PROJECTILE_PROTECTION]
[23Oct2023 18:01:20.973] [Render thread/WARN] [Trial and Error/]: Tried to create duplicate enchantment category: [value already present: UNIVERSAL_ENCHANTS_MINECRAFT_FEATHER_FALLING]
Mod Loader (Required)
Forge
Minecraft Version (Required)
1.19.2
Mod Version (Required)
v4.2.15
Notes (Required)
Due to this the plugins / tabs are not present in JEI
latest.log (Optional)
No response