mirror of
https://github.com/correl/mage.git
synced 2025-04-05 17:00:10 -09:00
Changed getTopCards to return cards in the order they're in the deck (#8658)
This commit is contained in:
commit
642111a80d
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…
Add table
Reference in a new issue