Adding Transient for serializable map
This commit is contained in:
parent
d561433968
commit
7b8cacdb2a
@ -15,7 +15,7 @@ public class Piece extends Shape{
|
||||
|
||||
private Vec2 Position;
|
||||
private Map linked_map;
|
||||
private Paint color;
|
||||
private transient Paint color; // https://www.baeldung.com/java-transient-keyword
|
||||
|
||||
public Piece(boolean[][] matrix) {
|
||||
super(matrix);
|
||||
|
Loading…
Reference in New Issue
Block a user