diff --git a/src/fr/neatmonster/nocheatplus/hooks/NCPHookManager.java b/src/fr/neatmonster/nocheatplus/hooks/NCPHookManager.java index 678ff037..3c46c38a 100644 --- a/src/fr/neatmonster/nocheatplus/hooks/NCPHookManager.java +++ b/src/fr/neatmonster/nocheatplus/hooks/NCPHookManager.java @@ -3,7 +3,7 @@ package fr.neatmonster.nocheatplus.hooks; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; -import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; @@ -368,10 +368,10 @@ public final class NCPHookManager { * * @param hooks * the hooks - * @return a set of the removed hooks ids + * @return a set of the removed hooks ids, same order as the given collection (hooks). */ public static Set removeHooks(final Collection hooks) { - final Set ids = new HashSet(); + final Set ids = new LinkedHashSet(); for (final NCPHook hook : hooks) { final Integer id = removeHook(hook); if (id != null)