mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-05-12 06:56:02 +08:00
Fix filenames
issue (pt. 2)
This commit is contained in:
parent
74cbad261d
commit
eed59e0d77
@ -54,10 +54,8 @@ public class DataLoader {
|
|||||||
List<Path> filenames = FileUtils.getPathsFromResource("/defaults/data/");
|
List<Path> filenames = FileUtils.getPathsFromResource("/defaults/data/");
|
||||||
|
|
||||||
if (filenames == null) {
|
if (filenames == null) {
|
||||||
Grasscutter.getLogger().error("We were unable to locate your default data files."); return;
|
Grasscutter.getLogger().error("We were unable to locate your default data files.");
|
||||||
}
|
} else for (Path file : filenames) {
|
||||||
|
|
||||||
for (Path file : filenames) {
|
|
||||||
String relativePath = String.valueOf(file).split("defaults[\\\\\\/]data[\\\\\\/]")[1];
|
String relativePath = String.valueOf(file).split("defaults[\\\\\\/]data[\\\\\\/]")[1];
|
||||||
|
|
||||||
CheckAndCopyData(relativePath);
|
CheckAndCopyData(relativePath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user