mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-30 10:51:20 +01:00
MATH%..% now returns all decimal places of resulting formula
This commit is contained in:
parent
c9cd7727ae
commit
7c27b76d1c
@ -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>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user