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