Format strings properly in MC's internal logger. Fixes resource pack case warnings.

This commit is contained in:
Lex Manos 2013-10-27 11:00:10 -07:00
parent 899b28bffe
commit ec517d5f28

View 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)