mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 02:43:15 +00:00
Fix filenames
issue (pt. 2)
This commit is contained in:
parent
ce8344a545
commit
0157c72de8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user