Skip to content

Commit

Permalink
Don't need to check Cleanroom version status as we not initial any ve…
Browse files Browse the repository at this point in the history
…rsioning yet
  • Loading branch information
KorewaLidesu committed Mar 6, 2024
1 parent 4256b30 commit 8eed207
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions src/main/java/net/minecraftforge/client/ForgeHooksClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,32 +338,32 @@ public static int getSkyBlendColour(World world, BlockPos center)
private static int updatescrollcounter = 0;
public static String renderMainMenu(GuiMainMenu gui, FontRenderer font, int width, int height, String splashText)
{
Status status = ForgeVersion.getStatus();
if (status == BETA || status == BETA_OUTDATED)
{
// render a warning at the top of the screen,
String line = I18n.format("forge.update.beta.1", TextFormatting.RED, TextFormatting.RESET);
gui.drawString(font, line, (width - font.getStringWidth(line)) / 2, 4 + (0 * (font.FONT_HEIGHT + 1)), -1);
line = I18n.format("forge.update.beta.2");
gui.drawString(font, line, (width - font.getStringWidth(line)) / 2, 4 + (1 * (font.FONT_HEIGHT + 1)), -1);
}

String line = null;
switch(status)
{
//case FAILED: line = " Version check failed"; break;
//case UP_TO_DATE: line = "Forge up to date"}; break;
//case AHEAD: line = "Using non-recommended Forge build, issues may arise."}; break;
case OUTDATED:
case BETA_OUTDATED: line = I18n.format("forge.update.newversion", ForgeVersion.getTarget()); break;
default: break;
}

if (line != null)
{
// if we have a line, render it in the bottom right, above Mojang's copyright line
gui.drawString(font, line, width - font.getStringWidth(line) - 2, height - (2 * (font.FONT_HEIGHT + 1)), -1);
}
// Status status = ForgeVersion.getStatus();
// if (status == BETA || status == BETA_OUTDATED)
// {
// // render a warning at the top of the screen,
// String line = I18n.format("forge.update.beta.1", TextFormatting.RED, TextFormatting.RESET);
// gui.drawString(font, line, (width - font.getStringWidth(line)) / 2, 4 + (0 * (font.FONT_HEIGHT + 1)), -1);
// line = I18n.format("forge.update.beta.2");
// gui.drawString(font, line, (width - font.getStringWidth(line)) / 2, 4 + (1 * (font.FONT_HEIGHT + 1)), -1);
// }
//
// String line = null;
// switch(status)
// {
// //case FAILED: line = " Version check failed"; break;
// //case UP_TO_DATE: line = "Forge up to date"}; break;
// //case AHEAD: line = "Using non-recommended Forge build, issues may arise."}; break;
// case OUTDATED:
// case BETA_OUTDATED: line = I18n.format("forge.update.newversion", ForgeVersion.getTarget()); break;
// default: break;
// }
//
// if (line != null)
// {
// // if we have a line, render it in the bottom right, above Mojang's copyright line
// gui.drawString(font, line, width - font.getStringWidth(line) - 2, height - (2 * (font.FONT_HEIGHT + 1)), -1);
// }

return splashText;
}
Expand Down

0 comments on commit 8eed207

Please sign in to comment.