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