From 9c1ec1069f676db65bf76df0e79a478b85e65c07 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 12 Aug 2024 08:14:52 -0400 Subject: [PATCH] More effectmod parser work. --- src/engine/ConfigParsing/EffectsParser.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 0c781b0e..e64109ae 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -30,6 +30,7 @@ public class EffectsParser { private static final Pattern SOURCE_REGEX = Pattern.compile("(?<=SOURCEBEGIN)(.+?)(?=SOURCEEND)", Pattern.DOTALL); private static final Pattern MODS_REGEX = Pattern.compile("(?<=MODSBEGIN)(.+?)(?=MODSEND)", Pattern.DOTALL); private static final Pattern STRSPLIT_REGEX = Pattern.compile("([^\"]\\S*|\"[^\"]*\")\\s*"); + public static void init() throws IOException { byte[] fileData = Files.readAllBytes(Paths.get(EffectsPath));