Fixed crash with zip paths (#7300)

This commit is contained in:
Cyborgmas 2020-09-08 16:47:39 -04:00 committed by GitHub
parent e421ea164c
commit f68344cd7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class ModFileResourcePack extends ResourcePack
{
final Path path = modFile.getLocator().findPath(modFile, name);
if(!Files.exists(path))
throw new ResourcePackFileNotFoundException(path.toFile(), name);
throw new ResourcePackFileNotFoundException(modFile.getFilePath().toFile(), name);
return Files.newInputStream(path, StandardOpenOption.READ);
}