diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index a4a9281b..a550dbfa 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -135,6 +135,9 @@ public class EffectsParser { if(inMod.type.equals("Health")) maxValue = 7; + if(data.length < maxValue) + maxValue = data.length; + inMod.values = new ArrayList<>(); for (int i = 1; i < data.length; i++)