Fixed Open url confirm screen not showing URL.

This commit is contained in:
Lex Manos 2015-11-08 12:52:41 -08:00
parent 95b30f5153
commit ffbad6633d
4 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,11 @@
--- ../src-base/minecraft/net/minecraft/client/gui/GuiConfirmOpenLink.java
+++ ../src-work/minecraft/net/minecraft/client/gui/GuiConfirmOpenLink.java
@@ -26,6 +26,8 @@
public void func_73866_w_()
{
+ super.func_73866_w_();// Call super to add line #2
+ this.field_146292_n.clear();
this.field_146292_n.add(new GuiButton(0, this.field_146294_l / 2 - 50 - 105, this.field_146295_m / 6 + 96, 100, 20, this.field_146352_g));
this.field_146292_n.add(new GuiButton(2, this.field_146294_l / 2 - 50, this.field_146295_m / 6 + 96, 100, 20, this.field_146362_s));
this.field_146292_n.add(new GuiButton(1, this.field_146294_l / 2 - 50 + 105, this.field_146295_m / 6 + 96, 100, 20, this.field_146356_h));

View File

@ -24,7 +24,7 @@
protected void func_146283_a(List p_146283_1_, int p_146283_2_, int p_146283_3_)
{
+ drawHoveringText(p_146283_1_, p_146283_2_, p_146283_3_, field_146289_q);
+ drawHoveringText(p_146283_1_, p_146283_2_, p_146283_3_, field_146289_q);
+ }
+
+ protected void drawHoveringText(List p_146283_1_, int p_146283_2_, int p_146283_3_, FontRenderer font)

View File

@ -425,7 +425,7 @@ public class GuiModList extends GuiScreen
lines.add(WHITE + "Version: " + selectedMod.getVersion());
lines.add(WHITE + "Mod State: " + Loader.instance().getModState(selectedMod));
if (vercheck.status == Status.OUTDATED || vercheck.status == Status.BETA_OUTDATED)
lines.add("Update Avalible: " + (vercheck.url == null ? "" : vercheck.url));
lines.add("Update Available: " + (vercheck.url == null ? "" : vercheck.url));
lines.add(null);
lines.add(RED + "No mod information found");

View File

@ -202,6 +202,7 @@ public @interface Mod
/**
* An optional URL to a JSON file that will be checked once per launch to determine if there is an updated
* version of this mod and notify the end user. For more information see ForgeVersion.
* Format is defined here: https://gist.github.com/LexManos/7aacb9aa991330523884
* @return URL to update metadata json
*/
String updateJSON() default "";