mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-01-05 06:57:37 +01:00
Little modifications for the formula parser.
This commit is contained in:
parent
5523e875cf
commit
fe0996b01b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user