From cac55abec22184dc1ee58b29eb4daa62ca645e6b Mon Sep 17 00:00:00 2001 From: Paul Fulham Date: Tue, 13 Sep 2016 00:31:43 -0700 Subject: [PATCH] Fix debug command creating empty file (MC-103399) (#3218) --- .../net/minecraft/command/CommandDebug.java.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/minecraft/net/minecraft/command/CommandDebug.java.patch diff --git a/patches/minecraft/net/minecraft/command/CommandDebug.java.patch b/patches/minecraft/net/minecraft/command/CommandDebug.java.patch new file mode 100644 index 0000000000..0f9ee1ef04 --- /dev/null +++ b/patches/minecraft/net/minecraft/command/CommandDebug.java.patch @@ -0,0 +1,11 @@ +--- ../src-base/minecraft/net/minecraft/command/CommandDebug.java ++++ ../src-work/minecraft/net/minecraft/command/CommandDebug.java +@@ -99,7 +99,7 @@ + { + IOUtils.closeQuietly((Writer)filewriter); + field_147208_a.error("Could not save profiler results to {}", new Object[] {file1, throwable}); +- } ++ } finally { IOUtils.closeQuietly(filewriter); } // FORGE: Fix MC-103399 + } + + private String func_184893_b(long p_184893_1_, int p_184893_3_, MinecraftServer p_184893_4_)