mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Update Card.java
Fix NPE
This commit is contained in:
@@ -4405,7 +4405,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
||||
p.get("Timestamp"), (long) 0);
|
||||
} else if (category.equals("Keywords")) {
|
||||
addChangedCardKeywords((List<String>) p.get("AddKeywords"), Lists.newArrayList(),
|
||||
(boolean) p.get("RemoveAll"), (long) p.get("Timestamp"), (long) 0);
|
||||
(boolean) p.getOrDefault("RemoveAll", false), (long) p.get("Timestamp"), (long) 0);
|
||||
} else if (category.equals("Types")) {
|
||||
addChangedCardTypes((CardType) p.get("AddTypes"), (CardType) p.get("RemoveTypes"),
|
||||
false, (Set<RemoveType>) p.get("RemoveXTypes"),
|
||||
|
||||
Reference in New Issue
Block a user