Fix mod list screen (#6367)

This commit is contained in:
ichttt 2019-12-18 02:03:11 +01:00 committed by tterrag
parent 599a754b60
commit 5df687dddc
2 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@ public class GuiModList extends Screen
InfoPanel(Minecraft mcIn, int widthIn, int heightIn, int topIn)
{
super(mcIn, widthIn, heightIn, topIn, modList.getLeft() + 10);
super(mcIn, widthIn, heightIn, topIn, modList.getRight() + 10);
}
void setInfo(List<String> lines, ResourceLocation logoPath, Size2i logoDims)
@ -375,7 +375,7 @@ public class GuiModList extends Screen
this.modInfo.render(mouseX, mouseY, partialTicks);
String text = I18n.format("fml.menu.mods.search");
int x = ((modList.getLeft()) / 2) - (getFontRenderer().getStringWidth(text) / 2);
int x = ((modList.getRight()) / 2) - (getFontRenderer().getStringWidth(text) / 2);
getFontRenderer().drawString(text, x, modList.getBottom() + 5, 0xFFFFFF);
this.search.render(mouseX, mouseY, partialTicks);
super.render(mouseX, mouseY, partialTicks);

View File

@ -94,7 +94,7 @@ public class GuiSlotModList extends ExtendedList<GuiSlotModList.ModEntry>
Minecraft.getInstance().getTextureManager().bindTexture(VERSION_CHECK_ICONS);
RenderSystem.color4f(1, 1, 1, 1);
RenderSystem.pushMatrix();
AbstractGui.blit(getRight() - (height / 2 + 4), GuiSlotModList.this.getTop() + (height / 2 - 4), vercheck.status.getSheetOffset() * 8, (vercheck.status.isAnimated() && ((System.currentTimeMillis() / 800 & 1)) == 1) ? 8 : 0, 8, 8, 64, 16);
AbstractGui.blit(getLeft() + width - 12, top + entryHeight / 4, vercheck.status.getSheetOffset() * 8, (vercheck.status.isAnimated() && ((System.currentTimeMillis() / 800 & 1)) == 1) ? 8 : 0, 8, 8, 64, 16);
RenderSystem.popMatrix();
}
}