Fixed crash with zip paths (#7300)
This commit is contained in:
parent
e421ea164c
commit
f68344cd7c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue