From f68344cd7c5038fe11442011ae54435a539b6086 Mon Sep 17 00:00:00 2001 From: Cyborgmas Date: Tue, 8 Sep 2020 16:47:39 -0400 Subject: [PATCH] Fixed crash with zip paths (#7300) --- .../java/net/minecraftforge/fml/packs/ModFileResourcePack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/fml/packs/ModFileResourcePack.java b/src/main/java/net/minecraftforge/fml/packs/ModFileResourcePack.java index cf85dfb97..8ade7bba5 100644 --- a/src/main/java/net/minecraftforge/fml/packs/ModFileResourcePack.java +++ b/src/main/java/net/minecraftforge/fml/packs/ModFileResourcePack.java @@ -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); }