mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixed resetCardColor crashing on face down cards.
This commit is contained in:
@@ -136,7 +136,9 @@ public class CardCharacteristics {
|
||||
* Resets the card color.
|
||||
*/
|
||||
public final void resetCardColor() {
|
||||
this.cardColor = Lists.newArrayList(this.cardColor.subList(0, 1));
|
||||
if (!this.cardColor.isEmpty()) {
|
||||
this.cardColor = Lists.newArrayList(this.cardColor.subList(0, 1));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user