From bca1d387a4f76ea0dc3de7cbcc65d41b64fab236 Mon Sep 17 00:00:00 2001 From: garbagemule Date: Mon, 8 Dec 2014 16:48:53 +0100 Subject: [PATCH] Allow for spaces between comma-separated potion effects. --- src/com/garbagemule/MobArena/util/PotionEffectParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/garbagemule/MobArena/util/PotionEffectParser.java b/src/com/garbagemule/MobArena/util/PotionEffectParser.java index a86f96d..fbd9aa5 100644 --- a/src/com/garbagemule/MobArena/util/PotionEffectParser.java +++ b/src/com/garbagemule/MobArena/util/PotionEffectParser.java @@ -20,7 +20,7 @@ public class PotionEffectParser List potions = new ArrayList(); for (String potion : s.split(",")) { - PotionEffect eff = parsePotionEffect(potion); + PotionEffect eff = parsePotionEffect(potion.trim()); if (eff != null) { potions.add(eff); }