Little modifications for the formula parser.

This commit is contained in:
Ka0rX 2023-05-05 11:18:40 +01:00
parent 5523e875cf
commit fe0996b01b

View File

@ -121,7 +121,7 @@ public class RegisteredSkill {
parsedExpression = parsedExpression.replace("<" + category + ">", "true");
parsedExpression = parsedExpression.replaceAll("<.*?>", "false");
try {
return (boolean) MythicLib.plugin.getInterpreter().eval(parsedExpression);
return (boolean) MythicLib.plugin.getFormulaParser().eval(parsedExpression);
} catch (EvalError error) {
throw new RuntimeException(error);
}