From 19bf75ade8dc9c0b435e009f15b31c2a09e55c29 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 8 Aug 2024 11:47:45 -0400 Subject: [PATCH] Regex updated --- src/engine/ConfigParsing/EffectsParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index f96b56c8..131a6d62 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -35,7 +35,7 @@ public class EffectsParser { // Iterate effect entries from .wpak config data while (matcher.find()) { - EffectEntry effectEntry = parseEffectEntry(matcher.group(1)); + EffectEntry effectEntry = parseEffectEntry(matcher.group()); if (effectEntry != null) effect_data.put(effectEntry.id, effectEntry); @@ -64,7 +64,7 @@ public class EffectsParser { Matcher matcher = SOURCE_REGEX.matcher(effectData); while (matcher.find()) - effectEntry.sources.add(matcher.group(1).trim()); + effectEntry.sources.add(matcher.group().trim()); // Parse modifier entries