aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorLulonaut <67191924+Lulonaut@users.noreply.github.com>2022-05-22 06:06:42 +0200
committerGitHub <noreply@github.com>2022-05-22 04:06:42 +0000
commit7de14ba5f7914ee9528c7a8efd834f66e2a92db5 (patch)
tree13fac7bada958f8c5b37de600cc73fc3043f6c3c /src/main/java
parentf5ec68327702073fd6e6cfc1278ed4c363a2faa8 (diff)
downloadNotEnoughUpdates-7de14ba5f7914ee9528c7a8efd834f66e2a92db5.tar.gz
NotEnoughUpdates-7de14ba5f7914ee9528c7a8efd834f66e2a92db5.tar.bz2
NotEnoughUpdates-7de14ba5f7914ee9528c7a8efd834f66e2a92db5.zip
Trade Window price int -> double (#145)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/TradeWindow.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/TradeWindow.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/TradeWindow.java
index 1ba155d5..1c5bc2e3 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/TradeWindow.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/TradeWindow.java
@@ -26,8 +26,14 @@ import org.lwjgl.opengl.GL11;
import java.awt.*;
import java.io.ByteArrayInputStream;
import java.text.NumberFormat;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.HashSet;
import java.util.List;
-import java.util.*;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Set;
+import java.util.TreeMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -799,7 +805,7 @@ public class TradeWindow {
TreeMap<Integer, Set<String>> ourTopItems = new TreeMap<>();
TreeMap<String, ItemStack> ourTopItemsStack = new TreeMap<>();
TreeMap<String, Integer> ourTopItemsCount = new TreeMap<>();
- int ourPrice = 0;
+ double ourPrice = 0;
for (int i = 0; i < 16; i++) {
int x = i % 4;
int y = i / 4;
@@ -813,7 +819,7 @@ public class TradeWindow {
TreeMap<Integer, Set<String>> theirTopItems = new TreeMap<>();
TreeMap<String, ItemStack> theirTopItemsStack = new TreeMap<>();
TreeMap<String, Integer> theirTopItemsCount = new TreeMap<>();
- int theirPrice = 0;
+ double theirPrice = 0;
for (int i = 0; i < 16; i++) {
int x = i % 4;
int y = i / 4;