Browse Source

Regex updated

feature-config-parsing2
MagicBot 5 months ago
parent
commit
19bf75ade8
  1. 4
      src/engine/ConfigParsing/EffectsParser.java

4
src/engine/ConfigParsing/EffectsParser.java

@ -35,7 +35,7 @@ public class EffectsParser {
// Iterate effect entries from .wpak config data // Iterate effect entries from .wpak config data
while (matcher.find()) { while (matcher.find()) {
EffectEntry effectEntry = parseEffectEntry(matcher.group(1)); EffectEntry effectEntry = parseEffectEntry(matcher.group());
if (effectEntry != null) if (effectEntry != null)
effect_data.put(effectEntry.id, effectEntry); effect_data.put(effectEntry.id, effectEntry);
@ -64,7 +64,7 @@ public class EffectsParser {
Matcher matcher = SOURCE_REGEX.matcher(effectData); Matcher matcher = SOURCE_REGEX.matcher(effectData);
while (matcher.find()) while (matcher.find())
effectEntry.sources.add(matcher.group(1).trim()); effectEntry.sources.add(matcher.group().trim());
// Parse modifier entries // Parse modifier entries

Loading…
Cancel
Save