mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 12:05:39 +00:00
Fix dataloader not getting path correctly
This commit is contained in:
parent
a088ea9b6b
commit
86dee4bae7
@ -48,13 +48,11 @@ public class DataLoader {
|
||||
}
|
||||
|
||||
public static void CheckAllFiles() {
|
||||
String pathSplitter = "defaults" + Pattern.quote(FileSystems.getDefault().getSeparator()) + "data" + Pattern.quote(FileSystems.getDefault().getSeparator());
|
||||
|
||||
try {
|
||||
List<Path> filenames = FileUtils.getPathsFromResource("/defaults/data/");
|
||||
|
||||
for (Path file : filenames) {
|
||||
String relativePath = String.valueOf(file).split(pathSplitter)[1];
|
||||
String relativePath = String.valueOf(file).split("defaults[\\\\\\/]data[\\\\\\/]")[1];
|
||||
|
||||
CheckAndCopyData(relativePath);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user