diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 64b6b034..2f84aca2 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -79,11 +79,11 @@ public class PowersParser { conditionString = new StringBuilder(conditionString.toString().replaceAll("(?m)^.*#.*\r?\n?", "")); + // Parse header line in power data + String[] lineData = powerString.toString().trim().split("\n"); ArrayList powerHeader = new ArrayList<>(); - // Parse header - String headerString = lineData[0]; headerString = headerString.replace("\n", " ");