Browse Source

effect parsing

feature-config-usage
FatBoy-DOTC 2 weeks ago
parent
commit
4cbe9fc236
  1. 8
      src/engine/wpak/EffectsParser.java

8
src/engine/wpak/EffectsParser.java

@ -50,8 +50,12 @@ public class EffectsParser {
Matcher matcher = EFFECT_REGEX.matcher(fileContents); Matcher matcher = EFFECT_REGEX.matcher(fileContents);
while (matcher.find()) { while (matcher.find()) {
Effect effect = parseEffectEntry(matcher.group()); try {
WpakPowerManager.effect_data.put(effect.effect_id, effect); Effect effect = parseEffectEntry(matcher.group());
WpakPowerManager.effect_data.put(effect.effect_id, effect);
}catch(Exception e){
Logger.error("EFFECT PARSE FAILED: " + e);
}
} }
} }

Loading…
Cancel
Save