Do some things
This commit is contained in:
parent
14b424814b
commit
3ce6dc439c
|
@ -559,7 +559,7 @@ public class GuiMainMenu extends GuiScreen implements GuiYesNoCallback {
|
||||||
this.drawCenteredString(this.fontRendererObj, this.splashText, 0, -8, -256);
|
this.drawCenteredString(this.fontRendererObj, this.splashText, 0, -8, -256);
|
||||||
GlStateManager.popMatrix();
|
GlStateManager.popMatrix();
|
||||||
|
|
||||||
String s = EaglercraftVersion.mainMenuStringA;
|
String s = EaglercraftVersion.getMainMenuStringA();
|
||||||
if (this.mc.isDemo()) {
|
if (this.mc.isDemo()) {
|
||||||
s += " Demo";
|
s += " Demo";
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,8 @@ package net.lax1dude.eaglercraft.v1_8;
|
||||||
|
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
|
|
||||||
|
import net.lax1dude.eaglercraft.v1_8.internal.PlatformRuntime;
|
||||||
|
|
||||||
import static net.eaglerforge.api.ModLoader.returntotalloadedmods;
|
import static net.eaglerforge.api.ModLoader.returntotalloadedmods;
|
||||||
|
|
||||||
public class EaglercraftVersion {
|
public class EaglercraftVersion {
|
||||||
|
@ -43,8 +45,6 @@ public class EaglercraftVersion {
|
||||||
|
|
||||||
// Miscellaneous variables:
|
// Miscellaneous variables:
|
||||||
|
|
||||||
public static int loadedmods = returntotalloadedmods();
|
|
||||||
public static final String mainMenuStringA = "Minecraft 1.8.8" + " (" + loadedmods + " Mods loaded)";
|
|
||||||
public static final String mainMenuStringB = projectOriginName + " " +
|
public static final String mainMenuStringB = projectOriginName + " " +
|
||||||
projectOriginRevision + " " + projectOriginVersion;
|
projectOriginRevision + " " + projectOriginVersion;
|
||||||
public static final String mainMenuStringC = "";
|
public static final String mainMenuStringC = "";
|
||||||
|
@ -62,4 +62,18 @@ public class EaglercraftVersion {
|
||||||
|
|
||||||
public static final boolean forceDemoMode = false;
|
public static final boolean forceDemoMode = false;
|
||||||
|
|
||||||
|
public static String getMainMenuStringA() {
|
||||||
|
int loadedmods = returntotalloadedmods();
|
||||||
|
String mainMenuStringA = "Minecraft 1.8.8";
|
||||||
|
if(!PlatformRuntime.isDebugRuntime()) {
|
||||||
|
if(loadedmods == 1) {
|
||||||
|
mainMenuStringA = mainMenuStringA + " (" + loadedmods + " Mod loaded)";
|
||||||
|
} else {
|
||||||
|
mainMenuStringA = mainMenuStringA + " (" + loadedmods + " Mods loaded)";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return mainMenuStringA;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -564,7 +564,7 @@ public class GuiMainMenu extends GuiScreen implements GuiYesNoCallback {
|
||||||
this.drawCenteredString(this.fontRendererObj, this.splashText, 0, -8, -256);
|
this.drawCenteredString(this.fontRendererObj, this.splashText, 0, -8, -256);
|
||||||
GlStateManager.popMatrix();
|
GlStateManager.popMatrix();
|
||||||
|
|
||||||
String s = EaglercraftVersion.mainMenuStringA;
|
String s = EaglercraftVersion.getMainMenuStringA();
|
||||||
if (this.mc.isDemo()) {
|
if (this.mc.isDemo()) {
|
||||||
s += " Demo";
|
s += " Demo";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user