mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 03:51:20 +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.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<CheckType, Set<CheckType>> map = new HashMap<CheckType, Set<CheckType>>();
|
||||
for (final CheckType type : CheckType.values())
|
||||
map.put(type, new HashSet<CheckType>());
|
||||
map.put(type, new LinkedHashSet<CheckType>());
|
||||
for (final CheckType type : CheckType.values()){
|
||||
if (type != CheckType.ALL) map.get(CheckType.ALL).add(type);
|
||||
for (final CheckType other : CheckType.values()){
|
||||
|
Loading…
Reference in New Issue
Block a user