From 67f2dce2fdbfe31bda4175254742d85d0fe84e99 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 06:26:59 -0400 Subject: [PATCH] More PowerEntry work. --- src/engine/wpak/PowersParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", " ");