From 61384b7f39e64474983935ac7fc5bb7a813089fd Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 31 Oct 2017 03:36:55 -0400 Subject: [PATCH] v0.6.2a: fixed ordering issues with key display --- .../shatteredpixel/shatteredpixeldungeon/ui/KeyDisplay.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/KeyDisplay.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/KeyDisplay.java index 220ae7606..7a51f713c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/KeyDisplay.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/KeyDisplay.java @@ -39,7 +39,7 @@ import com.watabou.noosa.NoosaScript; import com.watabou.noosa.Visual; import java.nio.FloatBuffer; -import java.util.HashMap; +import java.util.LinkedHashMap; public class KeyDisplay extends Visual { @@ -55,7 +55,7 @@ public class KeyDisplay extends Visual { //mapping of key types to slots in the array, 0 is reserved for black (missed) keys //this also determines the order these keys will appear (lower first) //and the order they will be truncated if there is no space (higher first, larger counts first) - private static final HashMap, Integer> keyMap = new HashMap<>(); + private static final LinkedHashMap, Integer> keyMap = new LinkedHashMap<>(); static { keyMap.put(SkeletonKey.class, 1); keyMap.put(CrystalKey.class, 2);