From 52c5f51613d5d227fe9e61d1bf1255e45e920366 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 12 Aug 2024 11:03:45 -0400 Subject: [PATCH] Parsing conditions --- src/engine/ConfigParsing/EffectsParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])); }