-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a version check mechanic to startup, it is done in a seperate thr…
…ead and has a config option to compleetly disable it. This allows us to notify users of new recomended builds. Hopefully stemming the flow of outdated help request. Also adds a warning to the main screen if you are running a 'Beta' Forge. Which means a Forge for a new version of Minecraft that we have not promoted a recomended build for yet.
- Loading branch information
Showing
7 changed files
with
184 additions
and
15 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
patches/minecraft/net/minecraft/client/gui/GuiMainMenu.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- ../src-base/minecraft/net/minecraft/client/gui/GuiMainMenu.java | ||
+++ ../src-work/minecraft/net/minecraft/client/gui/GuiMainMenu.java | ||
@@ -30,6 +30,7 @@ | ||
import net.minecraft.world.demo.DemoWorldServer; | ||
import net.minecraft.world.storage.ISaveFormat; | ||
import net.minecraft.world.storage.WorldInfo; | ||
+import net.minecraftforge.client.ForgeHooksClient; | ||
import org.apache.commons.io.Charsets; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
@@ -630,6 +631,7 @@ | ||
this.drawString(this.field_146289_q, brd, 2, this.field_146295_m - ( 10 + i * (this.field_146289_q.FONT_HEIGHT + 1)), 16777215); | ||
} | ||
} | ||
+ ForgeHooksClient.renderMainMenu(this, field_146289_q, field_146294_l, field_146295_m); | ||
String s1 = "Copyright Mojang AB. Do not distribute!"; | ||
this.drawString(this.field_146289_q, s1, this.field_146294_l - this.field_146289_q.getStringWidth(s1) - 2, this.field_146295_m - 10, -1); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ | |
import net.minecraft.entity.monster.EntityEnderman; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraftforge.common.ForgeHooks.GrassEntry; | ||
import net.minecraftforge.common.ForgeHooks.SeedEntry; | ||
import net.minecraftforge.event.entity.EntityEvent; | ||
import net.minecraftforge.oredict.OreDictionary; | ||
|
@@ -35,6 +34,7 @@ public class MinecraftForge | |
public static final EventBus EVENT_BUS = new EventBus(); | ||
public static final EventBus TERRAIN_GEN_BUS = new EventBus(); | ||
public static final EventBus ORE_GEN_BUS = new EventBus(); | ||
public static final String MC_VERSION = "1.7.2"; | ||
This comment has been minimized.
Sorry, something went wrong.
yuuka-miya
|
||
|
||
private static final ForgeInternalHandler INTERNAL_HANDLER = new ForgeInternalHandler(); | ||
|
||
|
@@ -60,6 +60,11 @@ public static void initialize() | |
EVENT_BUS.register(INTERNAL_HANDLER); | ||
OreDictionary.getOreName(0); | ||
|
||
if (!ForgeModContainer.disableVersionCheck) | ||
{ | ||
ForgeVersion.startVersionCheck(); | ||
} | ||
|
||
//Force these classes to be defined, Should prevent derp error hiding. | ||
new CrashReport("ThisIsFake", new Exception("Not real")); | ||
} | ||
|
Small typo here, avalible -> available.