Fix filenames issue (pt. 2)

This commit is contained in:
KingRainbow44 2022-06-22 00:05:44 -04:00
parent ce8344a545
commit 0157c72de8
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -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);