mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fixed crash with zip paths (#7300)
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user