mirror of
https://github.com/correl/mage.git
synced 2025-04-10 09:11:04 -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) {
|
public Set<Card> getTopCards(Game game, int amount) {
|
||||||
Set<Card> cards = new HashSet<>();
|
Set<Card> cards = new LinkedHashSet<>();
|
||||||
Iterator<UUID> it = library.iterator();
|
Iterator<UUID> it = library.iterator();
|
||||||
int count = 0;
|
int count = 0;
|
||||||
while (it.hasNext() && count < amount) {
|
while (it.hasNext() && count < amount) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue