mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Changed getTopCards to use LinkedHashSet to always return cards in the same order that they are in the library.
This commit is contained in:
parent
149c799926
commit
2996b0f76f
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ public class Library implements Serializable {
|
|||
}
|
||||
|
||||
public Set<Card> getTopCards(Game game, int amount) {
|
||||
Set<Card> cards = new HashSet<>();
|
||||
Set<Card> cards = new LinkedHashSet<>();
|
||||
Iterator<UUID> it = library.iterator();
|
||||
int count = 0;
|
||||
while (it.hasNext() && count < amount) {
|
||||
|
|
Loading…
Reference in a new issue