Fix spam during startup (#5957)
This commit is contained in:
parent
bef52c945b
commit
2f83234ccb
|
@ -9,19 +9,19 @@
|
||||||
private static final Comparator<Stitcher.Holder> field_217797_a = Comparator.<Stitcher.Holder, Integer>comparing((p_217793_0_) -> {
|
private static final Comparator<Stitcher.Holder> field_217797_a = Comparator.<Stitcher.Holder, Integer>comparing((p_217793_0_) -> {
|
||||||
return -p_217793_0_.field_94201_d;
|
return -p_217793_0_.field_94201_d;
|
||||||
}).thenComparing((p_217795_0_) -> {
|
}).thenComparing((p_217795_0_) -> {
|
||||||
@@ -53,6 +55,12 @@
|
@@ -54,6 +56,12 @@
|
||||||
list.sort(field_217797_a);
|
|
||||||
|
|
||||||
for(Stitcher.Holder stitcher$holder : list) {
|
for(Stitcher.Holder stitcher$holder : list) {
|
||||||
|
if (!this.func_94310_b(stitcher$holder)) {
|
||||||
+ LOGGER.info(new net.minecraftforge.fml.loading.AdvancedLogMessageAdapter(sb->{
|
+ LOGGER.info(new net.minecraftforge.fml.loading.AdvancedLogMessageAdapter(sb->{
|
||||||
+ sb.append("Unable to fit: ").append(stitcher$holder.field_98151_a.func_195668_m());
|
+ sb.append("Unable to fit: ").append(stitcher$holder.field_98151_a.func_195668_m());
|
||||||
+ sb.append(" - size: ").append(stitcher$holder.field_98151_a.func_94211_a()).append("x").append(stitcher$holder.field_98151_a.func_94216_b());
|
+ sb.append(" - size: ").append(stitcher$holder.field_98151_a.func_94211_a()).append("x").append(stitcher$holder.field_98151_a.func_94216_b());
|
||||||
+ sb.append(" - Maybe try a lower resolution resourcepack?\n");
|
+ sb.append(" - Maybe try a lower resolution resourcepack?\n");
|
||||||
+ list.forEach(h-> sb.append("\t").append(h).append("\n"));
|
+ list.forEach(h-> sb.append("\t").append(h).append("\n"));
|
||||||
+ }));
|
+ }));
|
||||||
if (!this.func_94310_b(stitcher$holder)) {
|
|
||||||
throw new StitcherException(stitcher$holder.field_98151_a, list.stream().map((p_225334_0_) -> {
|
throw new StitcherException(stitcher$holder.field_98151_a, list.stream().map((p_225334_0_) -> {
|
||||||
return p_225334_0_.field_98151_a;
|
return p_225334_0_.field_98151_a;
|
||||||
|
}).collect(ImmutableList.toImmutableList()));
|
||||||
@@ -107,7 +115,7 @@
|
@@ -107,7 +115,7 @@
|
||||||
boolean flag4 = flag2 && j != l;
|
boolean flag4 = flag2 && j != l;
|
||||||
boolean flag;
|
boolean flag;
|
||||||
|
|
Loading…
Reference in New Issue