From 319d68d15e602179937a751cb082b64547088db3 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 24 Jul 2024 19:09:41 -0500 Subject: [PATCH] attempt to parse 2 worded values --- src/engine/ConfigParsing/EffectsParser.java | 3 +++ 1 file changed, 3 insertions(+) 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++)