From 95cf5fa20900aa5d0c7f867b5c1b765330c7dea3 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 13 Aug 2024 11:28:07 -0400 Subject: [PATCH] Comment update --- src/engine/ConfigParsing/EffectsParser.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index 7bd4992f..470b00e2 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -34,12 +34,15 @@ public class EffectsParser { public static void parseWpakFile() throws IOException { + // Read .wpak file from disk + byte[] fileData = Files.readAllBytes(Paths.get(EffectsPath)); String fileContents = new String(fileData); - Matcher matcher = EFFECT_REGEX.matcher(fileContents); // Iterate effect entries from .wpak config data + Matcher matcher = EFFECT_REGEX.matcher(fileContents); + while (matcher.find()) { EffectEntry effectEntry = parseEffectEntry(matcher.group()); effect_data.put(effectEntry.id, effectEntry);