Browse Source

Parsing conditions

feature-config-parsing2
MagicBot 3 months ago
parent
commit
52c5f51613
  1. 2
      src/engine/ConfigParsing/EffectsParser.java

2
src/engine/ConfigParsing/EffectsParser.java

@ -113,7 +113,7 @@ public class EffectsParser {
matcher = CONDITIONS_REGEX.matcher(effectData); matcher = CONDITIONS_REGEX.matcher(effectData);
while (matcher.find()) { while (matcher.find()) {
String[] condition = matcher.group().split(" "); String[] condition = matcher.group().trim().split(" ");
effectEntry.conditions.put(condition[0].trim(), Float.parseFloat(condition[1])); effectEntry.conditions.put(condition[0].trim(), Float.parseFloat(condition[1]));
} }

Loading…
Cancel
Save