mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Update EnemySprite.java
Fix Android not having stream().toList()
This commit is contained in:
@@ -448,7 +448,7 @@ public class EnemySprite extends CharacterSprite implements Steerable<Vector2> {
|
|||||||
if (data.copyPlayerDeck && Current.latestDeck() != null) {
|
if (data.copyPlayerDeck && Current.latestDeck() != null) {
|
||||||
List<PaperCard> paperCardList = Current.latestDeck().getMain().toFlatList().stream()
|
List<PaperCard> paperCardList = Current.latestDeck().getMain().toFlatList().stream()
|
||||||
.filter(paperCard -> !paperCard.isVeryBasicLand())
|
.filter(paperCard -> !paperCard.isVeryBasicLand())
|
||||||
.toList();
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
if (paperCardList.size() < 6) {
|
if (paperCardList.size() < 6) {
|
||||||
// Player trying to cheese doppleganger and farm cards. Sorry, the fun police have arrived
|
// Player trying to cheese doppleganger and farm cards. Sorry, the fun police have arrived
|
||||||
|
|||||||
Reference in New Issue
Block a user