Fixed crash with zip paths (#7300)
This commit is contained in:
parent
e421ea164c
commit
f68344cd7c
|
@ -66,7 +66,7 @@ public class ModFileResourcePack extends ResourcePack
|
||||||
{
|
{
|
||||||
final Path path = modFile.getLocator().findPath(modFile, name);
|
final Path path = modFile.getLocator().findPath(modFile, name);
|
||||||
if(!Files.exists(path))
|
if(!Files.exists(path))
|
||||||
throw new ResourcePackFileNotFoundException(path.toFile(), name);
|
throw new ResourcePackFileNotFoundException(modFile.getFilePath().toFile(), name);
|
||||||
return Files.newInputStream(path, StandardOpenOption.READ);
|
return Files.newInputStream(path, StandardOpenOption.READ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue