forked from External/mage
* Choose an ability - fixed not working cards like Argivian Avenger, Atraxas Skitterfang, Steel Seraph (#10115)
This commit is contained in:
parent
ea10b025e0
commit
6b05562336
9 changed files with 68 additions and 23 deletions
|
|
@ -1733,4 +1733,12 @@ public final class CardUtil {
|
|||
return "" + startingLoyalty;
|
||||
}
|
||||
}
|
||||
|
||||
public static void checkSetParamForSerializationCompatibility(Set<String> data) {
|
||||
// HashMap uses inner class for Keys without serialization support,
|
||||
// so you can't use it for client-server data
|
||||
if (data != null && data.getClass().getName().endsWith("$KeySet")) {
|
||||
throw new IllegalArgumentException("Can't use KeySet as param, use new HashSet<>(data.keySet()) instead");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue