From a6486df7fa6b93974bb9cfedccf524c809c7bb65 Mon Sep 17 00:00:00 2001 From: pahimar Date: Sat, 21 Dec 2013 18:47:55 -0500 Subject: [PATCH] Forcing EmcValues to have (at most) 4 points of precision --- .../java/com/pahimar/ee3/emc/EmcValue.java | 21 +++++++++++-------- .../com/pahimar/ee3/emc/EmcValuesDefault.java | 2 +- .../com/pahimar/ee3/helper/DebugHelper.java | 11 ++++++++++ .../pahimar/ee3/item/ItemAlchemicalDust.java | 2 +- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/pahimar/ee3/emc/EmcValue.java b/src/main/java/com/pahimar/ee3/emc/EmcValue.java index 147da8ce..770a8401 100644 --- a/src/main/java/com/pahimar/ee3/emc/EmcValue.java +++ b/src/main/java/com/pahimar/ee3/emc/EmcValue.java @@ -5,6 +5,7 @@ import com.pahimar.ee3.helper.LogHelper; import com.pahimar.ee3.lib.Compare; import java.lang.reflect.Type; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -21,7 +22,7 @@ public class EmcValue implements Comparable, JsonDeserializer, JsonDeserializer, JsonDeserializer