Fixed spells appearing in different ordering in the creative inventory

This commit is contained in:
Sollace 2021-12-29 18:15:37 +02:00
parent 7a05efa23a
commit 9ef8a78a79

View file

@ -1,7 +1,7 @@
package com.minelittlepony.unicopia.ability.magic.spell.effect;
import java.util.EnumMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
@ -204,7 +204,7 @@ public final class SpellType<T extends Spell> implements Affine, SpellPredicate<
}
public static Set<SpellType<?>> byAffinity(Affinity affinity) {
return BY_AFFINITY.computeIfAbsent(affinity, a -> new HashSet<>());
return BY_AFFINITY.computeIfAbsent(affinity, a -> new LinkedHashSet<>());
}
public interface Factory<T extends Spell> {