1
0
Fork 0
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 ()

This commit is contained in:
Alex Vasile 2022-05-12 08:31:03 -06:00 committed by GitHub
commit 642111a80d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {