We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bd53c9 commit f78bd29Copy full SHA for f78bd29
1 file changed
forge-game/src/main/java/forge/game/cost/CostPartWithList.java
@@ -35,7 +35,14 @@ public abstract class CostPartWithList extends CostPart {
35
36
private boolean intrinsic = true;
37
38
- protected final CardZoneTable table = new CardZoneTable();
+ // transient: only used server-side during cost payment, never needed by the client.
39
+ // CardZoneTable is not Serializable and must not enter the network serialization graph.
40
+ protected transient CardZoneTable table = new CardZoneTable();
41
+
42
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43
+ in.defaultReadObject();
44
+ table = new CardZoneTable();
45
+ }
46
47
public final CardCollectionView getLKIList() {
48
return lkiList;
0 commit comments