mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08: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
Add a link
Reference in a new issue