diff --git a/src/com/luca0n/dual/common/Dual.java b/src/com/luca0n/dual/common/Dual.java index 42b2dfb..842ff22 100644 --- a/src/com/luca0n/dual/common/Dual.java +++ b/src/com/luca0n/dual/common/Dual.java @@ -155,9 +155,12 @@ public class Dual { String line = lines[x]; boolean keepLine = true; // Check if this line is a comment. - if (line.startsWith("#")) - // Ignore this line. + if (line.startsWith("#")){ + // Ignore this line, but add it to the updatedLines list + // in order to avoid data loss. + updatedLines.add(line); continue; + } String[] contents = line.split("#"); // Check if this line was auto-generated by this program.