Parsing conditions
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -94,7 +94,7 @@ public class WorldServer {
|
||||
return;
|
||||
}
|
||||
|
||||
EffectsParser.init();
|
||||
EffectsParser.parseWpakFile();
|
||||
|
||||
try {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user