From e308285907ae455876529a6334358ebf6e9f7861 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 13 Feb 2024 06:09:19 +0100 Subject: [PATCH] Fix input jar loop aborting on dir (#2) --- src/main/java/net/minecraftforge/fart/internal/RenamerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/fart/internal/RenamerImpl.java b/src/main/java/net/minecraftforge/fart/internal/RenamerImpl.java index d177e23..8479054 100644 --- a/src/main/java/net/minecraftforge/fart/internal/RenamerImpl.java +++ b/src/main/java/net/minecraftforge/fart/internal/RenamerImpl.java @@ -99,7 +99,7 @@ public void run(File input, File output) { for (Enumeration entries = in.entries(); entries.hasMoreElements();) { final ZipEntry e = entries.nextElement(); if (e.isDirectory()) - return; + continue; String name = e.getName(); byte[] data = Util.toByteArray(in.getInputStream(e));