mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-31 07:40:16 +01:00
Preserve order of check types in APIUtils.
This commit is contained in:
parent
07af2f687a
commit
2f13529a29
@ -3,7 +3,7 @@ package fr.neatmonster.nocheatplus.hooks;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.LinkedHashSet;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ public class APIUtils {
|
|||||||
static {
|
static {
|
||||||
final Map<CheckType, Set<CheckType>> map = new HashMap<CheckType, Set<CheckType>>();
|
final Map<CheckType, Set<CheckType>> map = new HashMap<CheckType, Set<CheckType>>();
|
||||||
for (final CheckType type : CheckType.values())
|
for (final CheckType type : CheckType.values())
|
||||||
map.put(type, new HashSet<CheckType>());
|
map.put(type, new LinkedHashSet<CheckType>());
|
||||||
for (final CheckType type : CheckType.values()){
|
for (final CheckType type : CheckType.values()){
|
||||||
if (type != CheckType.ALL) map.get(CheckType.ALL).add(type);
|
if (type != CheckType.ALL) map.get(CheckType.ALL).add(type);
|
||||||
for (final CheckType other : CheckType.values()){
|
for (final CheckType other : CheckType.values()){
|
||||||
|
Loading…
Reference in New Issue
Block a user