Skip to content

Commit 52c1886

Browse files
committedJun 5, 2017
Move away from String.format for logging
1 parent e67bde9 commit 52c1886

File tree

125 files changed

+766
-718
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+766
-718
lines changed
 

‎patches/minecraft/net/minecraft/client/renderer/texture/Stitcher.java.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
if (!this.func_94310_b(stitcher$holder))
1313
{
1414
String s = String.format("Unable to fit: %s - size: %dx%d - Maybe try a lowerresolution resourcepack?", new Object[] {stitcher$holder.func_98150_a().func_94215_i(), Integer.valueOf(stitcher$holder.func_98150_a().func_94211_a()), Integer.valueOf(stitcher$holder.func_98150_a().func_94216_b())});
15-
+ net.minecraftforge.fml.common.FMLLog.info(s);
15+
+ net.minecraftforge.fml.common.FMLLog.log.info(s);
1616
+ for (Stitcher.Holder h : astitcher$holder)
17-
+ net.minecraftforge.fml.common.FMLLog.info(" %s", h);
17+
+ net.minecraftforge.fml.common.FMLLog.log.info(" {}", h);
1818
throw new StitcherException(stitcher$holder, s);
1919
}
2020
}

‎patches/minecraft/net/minecraft/client/renderer/texture/TextureMap.java.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
int j = Integer.MAX_VALUE;
5353
int k = 1 << this.field_147636_j;
5454

55-
+ net.minecraftforge.fml.common.FMLLog.info("Max texture size: %d", i);
55+
+ net.minecraftforge.fml.common.FMLLog.log.info("Max texture size: {}", i);
5656
+ net.minecraftforge.fml.common.ProgressManager.ProgressBar bar = net.minecraftforge.fml.common.ProgressManager.push("Texture stitching", skipFirst ? 0 : this.field_110574_e.size());
5757
+
5858
+ if(!skipFirst)

0 commit comments

Comments
 (0)