diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 2f576fae..2d63f143 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -113,7 +113,7 @@ public class EffectsParser { matcher = CONDITIONS_REGEX.matcher(effectData); while (matcher.find()) { - String[] condition = matcher.group().split(" "); + String[] condition = matcher.group().trim().split(" "); effectEntry.conditions.put(condition[0].trim(), Float.parseFloat(condition[1])); }