Skip to content

Commit 47b0e93

Browse files
committed
Append log rather than replace in reobfJar patcher
Signed-off-by: SizableShrimp <[email protected]>
1 parent 8b5b597 commit 47b0e93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/patcher/java/net/minecraftforge/gradle/patcher/tasks/ReobfuscateJar.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
import java.io.IOException;
2929
import java.io.OutputStream;
3030
import java.nio.charset.StandardCharsets;
31+
import java.nio.file.Files;
32+
import java.nio.file.StandardOpenOption;
3133
import java.util.Enumeration;
3234
import java.util.HashSet;
3335
import java.util.List;
@@ -52,7 +54,7 @@ public ReobfuscateJar() {
5254
public void apply() throws IOException {
5355
super.apply();
5456

55-
try (OutputStream log = new BufferedOutputStream(new FileOutputStream(logFile.get().getAsFile()))) {
57+
try (OutputStream log = new BufferedOutputStream(Files.newOutputStream(logFile.get().getAsFile().toPath(), StandardOpenOption.WRITE, StandardOpenOption.APPEND))) {
5658
Set<String> packages = new HashSet<>();
5759
IMappingFile srgMappings = IMappingFile.load(getSrg().get().getAsFile());
5860
for (IMappingFile.IClass srgClass : srgMappings.getClasses()) {

0 commit comments

Comments
 (0)