forked from Upstream/mmocore
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.replace("<" + category + ">", "true");
|
||||||
parsedExpression = parsedExpression.replaceAll("<.*?>", "false");
|
parsedExpression = parsedExpression.replaceAll("<.*?>", "false");
|
||||||
try {
|
try {
|
||||||
return (boolean) MythicLib.plugin.getInterpreter().eval(parsedExpression);
|
return (boolean) MythicLib.plugin.getFormulaParser().eval(parsedExpression);
|
||||||
} catch (EvalError error) {
|
} catch (EvalError error) {
|
||||||
throw new RuntimeException(error);
|
throw new RuntimeException(error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user