edited String queals in Piece

This commit is contained in:
Cedric Beck
2024-12-08 12:03:05 +01:00
parent 98a6f2e689
commit bc399b1bf9

View File

@@ -161,8 +161,7 @@ public boolean equals(Object obj) {
Piece piece = (Piece) obj;
System.out.println("own UUID: " + this.uuid + ". Other UUID: " + piece.uuid);
return Objects.equals(this.uuid.toString(), piece.uuid.toString());
return uuid.toString().equals(piece.uuid.toString());
}
return false;