Fixed crash with zip paths (#7300)

This commit is contained in:
Cyborgmas authored and GitHub committed 2020-09-08 13:47:39 -07:00
1 parent e421ea164c
commit f68344cd7c
1 file changed
+1 -1
@@ -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);
}