From 7f8afdff659e852bf0c7daa2b5e0555438f93938 Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Sat, 6 May 2023 13:36:16 +0100 Subject: [PATCH] Modification for ML FormulaParser. --- .../java/net/Indyuce/mmoitems/api/item/build/LoreBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/item/build/LoreBuilder.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/item/build/LoreBuilder.java index c04cf656..0dc97c66 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/item/build/LoreBuilder.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/item/build/LoreBuilder.java @@ -158,7 +158,7 @@ public class LoreBuilder { String result; try { - result = MythicLib.plugin.getMMOConfig().decimals.format((double) MythicLib.plugin.getInterpreter().eval(match)); + result = MythicLib.plugin.getMMOConfig().decimals.format((double) MythicLib.plugin.getFormulaParser().eval(match)); } catch (Exception ignored) { result = ""; }