Fixed broken custom enchants since last version

This commit is contained in:
Auxilor 2022-04-23 15:16:40 +01:00
parent 62616b27f5
commit 6fc2fa26fa

View File

@ -68,14 +68,14 @@ public class CustomEcoEnchantLevel implements Holder {
conditions.add(Conditions.compile(
new BuildableConfig()
.add("args.enchant", parent.getKey().toString())
.add("args.enchant", parent.getKey().getKey())
.add("id", "in_ecoenchant_world"),
"EcoEnchants Internals (world) - If you see this message, report it as a bug!"
));
conditions.add(Conditions.compile(
new BuildableConfig()
.add("args.enchant", parent.getKey().toString())
.add("args.enchant", parent.getKey().getKey())
.add("id", "has_ecoenchant_requirements"),
"EcoEnchants Internals (requirements) - If you see this message, report it as a bug!"
));