From afb6d3e8a35c8e931d69704f9a5d181978a3ff3d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 14 Aug 2024 16:46:02 -0400 Subject: [PATCH] Needs group 0 --- src/engine/wpak/EffectsParser.java | 4 ++-- src/engine/wpak/PowersParser.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/wpak/EffectsParser.java b/src/engine/wpak/EffectsParser.java index 78ff2db2..ca02066c 100644 --- a/src/engine/wpak/EffectsParser.java +++ b/src/engine/wpak/EffectsParser.java @@ -73,7 +73,7 @@ public class EffectsParser { Matcher matcher = STRSPLIT_REGEX.matcher(firstLine); while (matcher.find()) - effectHeader.add(matcher.group(1).trim()); + effectHeader.add(matcher.group().trim()); effectEntry.id = effectHeader.get(0); effectEntry.name = effectHeader.get(1); @@ -135,7 +135,7 @@ public class EffectsParser { Matcher matcher = STRSPLIT_REGEX.matcher(modEntry.trim()); while (matcher.find()) - modValues.add(matcher.group(1).trim()); + modValues.add(matcher.group().trim()); effectModifier.type = mbEnums.ModType.valueOf(modValues.get(0).trim()); diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 4cc88418..29157fe8 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -36,7 +36,7 @@ public class PowersParser { while (matcher.find()) { - PowerEntry powerEntry = parsePowerEntry(matcher.group(1).trim()); + PowerEntry powerEntry = parsePowerEntry(matcher.group().trim()); } } @@ -55,7 +55,7 @@ public class PowersParser { Matcher matcher = STRSPLIT_REGEX.matcher(headerString); while (matcher.find()) - powerHeader.add(matcher.group(1).trim()); + powerHeader.add(matcher.group().trim()); for (int x = 2; x < powerEntries.length; x++) { // Parse key/pair values