MATH%..% now returns all decimal places of resulting formula

This commit is contained in:
Jules 2024-06-19 17:09:14 -07:00
parent c9cd7727ae
commit 7c27b76d1c

View File

@ -295,7 +295,7 @@ public class LoreBuilder extends Buildable<List<String>> {
@Deprecated @Deprecated
private String evaluate(String formula) { private String evaluate(String formula) {
try { try {
return MythicLib.plugin.getMMOConfig().decimals.format(NumericalExpression.eval(formula)); return String.valueOf(NumericalExpression.eval(formula));
} catch (Throwable throwable) { } catch (Throwable throwable) {
return "<ParsingError>"; return "<ParsingError>";
} }