mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix debug command creating empty file (MC-103399) (#3218)
This commit is contained in:
1 parent
bf6437c12a
commit
cac55abec2
1 file changed
+11
@@ -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_)
|
||||
Reference in new issue
Block a user