Adding Transient for serializable map
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Debucquoy Anthony 2023-05-01 20:15:13 +02:00
parent d561433968
commit 7b8cacdb2a
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -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);