Output meta in inheritance order in the 'meta info' command (#908)

This commit is contained in:
Luck 2018-04-20 15:04:29 +01:00
parent 8e5bcdd5ea
commit 4e87489dc1
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -53,7 +53,7 @@ import net.kyori.text.event.ClickEvent;
import net.kyori.text.event.HoverEvent; import net.kyori.text.event.HoverEvent;
import java.util.Comparator; import java.util.Comparator;
import java.util.HashSet; import java.util.LinkedHashSet;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
@ -79,7 +79,7 @@ public class MetaInfo extends SharedSubCommand {
SortedSet<Map.Entry<Integer, LocalizedNode>> prefixes = new TreeSet<>(MetaComparator.INSTANCE.reversed()); SortedSet<Map.Entry<Integer, LocalizedNode>> prefixes = new TreeSet<>(MetaComparator.INSTANCE.reversed());
SortedSet<Map.Entry<Integer, LocalizedNode>> suffixes = new TreeSet<>(MetaComparator.INSTANCE.reversed()); SortedSet<Map.Entry<Integer, LocalizedNode>> suffixes = new TreeSet<>(MetaComparator.INSTANCE.reversed());
Set<LocalizedNode> meta = new HashSet<>(); Set<LocalizedNode> meta = new LinkedHashSet<>();
// Collect data // Collect data
for (LocalizedNode node : holder.resolveInheritances()) { for (LocalizedNode node : holder.resolveInheritances()) {