Format strings properly in MC's internal logger. Fixes resource pack case warnings.
This commit is contained in:
parent
899b28bffe
commit
ec517d5f28
1 changed files with 11 additions and 0 deletions
11
patches/minecraft/net/minecraft/logging/LogAgent.java.patch
Normal file
11
patches/minecraft/net/minecraft/logging/LogAgent.java.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- ../src_base/minecraft/net/minecraft/logging/LogAgent.java
|
||||
+++ ../src_work/minecraft/net/minecraft/logging/LogAgent.java
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
public void logWarningFormatted(String par1Str, Object ... par2ArrayOfObj)
|
||||
{
|
||||
- this.serverLogger.log(Level.WARNING, par1Str, par2ArrayOfObj);
|
||||
+ this.serverLogger.log(Level.WARNING, String.format(par1Str, par2ArrayOfObj));
|
||||
}
|
||||
|
||||
public void logWarningException(String par1Str, Throwable par2Throwable)
|
Loading…
Reference in a new issue