From c8a5224c7532cbeb136ed86ff859d3872207d109 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 12 Aug 2024 11:15:21 -0400 Subject: [PATCH] Parsing conditions --- src/engine/ConfigParsing/EffectsParser.java | 2 +- src/engine/server/world/WorldServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index a3b4b3f1..5836e881 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -32,7 +32,7 @@ public class EffectsParser { 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 { + public static void parseWpakFile() throws IOException { byte[] fileData = Files.readAllBytes(Paths.get(EffectsPath)); String fileContents = new String(fileData); diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index 3c73cefa..cea0782e 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -94,7 +94,7 @@ public class WorldServer { return; } - EffectsParser.init(); + EffectsParser.parseWpakFile(); try {