From 79a17b0c1cc660233fa80d050286c0926fa14cdd Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Tue, 5 Aug 2014 09:20:12 -0400 Subject: [PATCH] Fix /mcrank when using flatfile. Fixes #2179 --- .../com/gmail/nossr50/database/FlatfileDatabaseManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java index 03710d801..8c0dcaeb8 100644 --- a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java @@ -367,7 +367,7 @@ public final class FlatfileDatabaseManager implements DatabaseManager { public Map readRank(String playerName) { updateLeaderboards(); - Map skills = new EnumMap(SkillType.class); + Map skills = new HashMap(); for (SkillType skill : SkillType.NON_CHILD_SKILLS) { skills.put(skill, getPlayerRank(playerName, playerStatHash.get(skill)));