diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index e056eb7f..0ccbb42f 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -17,10 +17,12 @@ import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; public class EffectsParser { public static String EffectsPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/Effects.cfg"; + public static HashMap effect_data = new HashMap<>(); public static void init() throws IOException { ArrayList> compiledData = new ArrayList<>(); String[] lines = readLines(EffectsPath); @@ -130,6 +132,7 @@ public class EffectsParser { } index++; } + effect_data.put(data.id,data); } } public static void GenerateModValues(Mod inMod, String[] data)