Commit eed59e0d authored by KingRainbow44's avatar KingRainbow44
Browse files

Fix `filenames` issue (pt. 2)

parent 74cbad26
......@@ -54,10 +54,8 @@ public class DataLoader {
List<Path> filenames = FileUtils.getPathsFromResource("/defaults/data/");
if (filenames == null) {
Grasscutter.getLogger().error("We were unable to locate your default data files."); return;
}
for (Path file : filenames) {
Grasscutter.getLogger().error("We were unable to locate your default data files.");
} else for (Path file : filenames) {
String relativePath = String.valueOf(file).split("defaults[\\\\\\/]data[\\\\\\/]")[1];
CheckAndCopyData(relativePath);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment