From 2f13529a290ea5279da49a421267410f9628ed96 Mon Sep 17 00:00:00 2001 From: asofold Date: Wed, 30 Jul 2014 22:50:02 +0200 Subject: [PATCH] Preserve order of check types in APIUtils. --- .../main/java/fr/neatmonster/nocheatplus/hooks/APIUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/hooks/APIUtils.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/hooks/APIUtils.java index 84982834..12104ab4 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/hooks/APIUtils.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/hooks/APIUtils.java @@ -3,7 +3,7 @@ package fr.neatmonster.nocheatplus.hooks; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; -import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.Map; import java.util.Set; @@ -25,7 +25,7 @@ public class APIUtils { static { final Map> map = new HashMap>(); for (final CheckType type : CheckType.values()) - map.put(type, new HashSet()); + map.put(type, new LinkedHashSet()); for (final CheckType type : CheckType.values()){ if (type != CheckType.ALL) map.get(CheckType.ALL).add(type); for (final CheckType other : CheckType.values()){