Fixes a severe bug caused by trying to simplify GateLayout's saveLayout method

This commit is contained in:
Kristian Knarvik 2021-10-18 04:00:18 +02:00
parent 982d8abf65
commit ac045fa7db

View File

@ -107,7 +107,9 @@ public class GateLayout {
*/
public void saveLayout(BufferedWriter bufferedWriter) throws IOException {
for (Character[] line : this.layout) {
bufferedWriter.append(Arrays.toString(line));
for (Character character : line) {
bufferedWriter.append(character);
}
bufferedWriter.newLine();
}
}