Try to fix userdev file copying

This commit is contained in:
Juuxel
2020-07-30 17:30:30 +03:00
parent d4ceb857eb
commit 2f8946ed01

View File

@@ -405,7 +405,7 @@ public class MinecraftProvider extends DependencyProvider {
walkFileSystems(source, target, java.nio.file.Files::isRegularFile, (sourceFs, targetFs, it) -> {
Path inject = sourceFs.getPath("inject");
if (it.startsWith(inject)) {
if (it.toString().startsWith(inject.toString())) {
Path targetPath = targetFs.getPath(inject.relativize(it).toString());
Path parent = targetPath.getParent();