9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-27 19:09:09 +00:00

added alias

This commit is contained in:
XiaoMoMi
2024-10-08 04:00:33 +08:00
parent 1c6dc96a7b
commit 1fa4f81408
3 changed files with 45 additions and 4 deletions

View File

@@ -542,7 +542,7 @@ public abstract class AbstractRequirementManager<T> implements RequirementManage
plugin.getPluginLogger().warn("Invalid value type: " + args.getClass().getSimpleName() + " found at == requirement which is expected be `Section`");
return Requirement.empty();
}
}, "==");
}, "==", "=");
registerRequirement((args, actions, runActions) -> {
if (args instanceof Section section) {
MathValue<T> v1 = MathValue.auto(section.get("value1"));