forked from MagicBane/Server
Comment update
This commit is contained in:
@@ -34,12 +34,15 @@ public class EffectsParser {
|
|||||||
|
|
||||||
public static void parseWpakFile() throws IOException {
|
public static void parseWpakFile() throws IOException {
|
||||||
|
|
||||||
|
// Read .wpak file from disk
|
||||||
|
|
||||||
byte[] fileData = Files.readAllBytes(Paths.get(EffectsPath));
|
byte[] fileData = Files.readAllBytes(Paths.get(EffectsPath));
|
||||||
String fileContents = new String(fileData);
|
String fileContents = new String(fileData);
|
||||||
Matcher matcher = EFFECT_REGEX.matcher(fileContents);
|
|
||||||
|
|
||||||
// Iterate effect entries from .wpak config data
|
// Iterate effect entries from .wpak config data
|
||||||
|
|
||||||
|
Matcher matcher = EFFECT_REGEX.matcher(fileContents);
|
||||||
|
|
||||||
while (matcher.find()) {
|
while (matcher.find()) {
|
||||||
EffectEntry effectEntry = parseEffectEntry(matcher.group());
|
EffectEntry effectEntry = parseEffectEntry(matcher.group());
|
||||||
effect_data.put(effectEntry.id, effectEntry);
|
effect_data.put(effectEntry.id, effectEntry);
|
||||||
|
|||||||
Reference in New Issue
Block a user