Skip to content

Commit

Permalink
fix for update
Browse files Browse the repository at this point in the history
update notification now working
cant have letters in version number
removed a line in mk command
also changed download address
https actually works so changed back for that
  • Loading branch information
maggi373 committed Dec 29, 2020
1 parent 862dc47 commit dcc53c4
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ FMP_version=1.2.0.345
CCLIB_version=1.1.3.136
NEI_version=1.0.4.101
CCC_version=1.0.6.39
mod_version=T.10.5
mod_version=9.10.5
3 changes: 1 addition & 2 deletions src/main/java/mekanism/common/CommandMekanism.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public void processCommand(ICommandSender sender, String[] params)
sender.addChatMessage(new ChatComponentText(EnumColor.GREY + "------------- " + EnumColor.DARK_BLUE + "[Mekanism]" + EnumColor.GREY + " -------------"));
sender.addChatMessage(new ChatComponentText(EnumColor.GREY + " *Version: " + EnumColor.DARK_GREY + Mekanism.versionNumber));
sender.addChatMessage(new ChatComponentText(EnumColor.GREY + " *Latest Version: " + EnumColor.DARK_GREY + Mekanism.latestVersionNumber));
sender.addChatMessage(new ChatComponentText(EnumColor.GREY + " *Developed on Mac OS X 10.8 Mountain Lion"));
sender.addChatMessage(new ChatComponentText(EnumColor.GREY + " *Code, textures, and ideas by aidancbrady"));
sender.addChatMessage(new ChatComponentText(EnumColor.GREY + " *Recent News: " + EnumColor.INDIGO + Mekanism.recentNews));
sender.addChatMessage(new ChatComponentText(EnumColor.GREY + "------------- " + EnumColor.DARK_BLUE + "[=======]" + EnumColor.GREY + " -------------"));
Expand Down Expand Up @@ -101,7 +100,7 @@ else if(params[0].equalsIgnoreCase("news"))
}
else if(params[0].equalsIgnoreCase("latest"))
{
sender.addChatMessage(new ChatComponentText(EnumColor.DARK_BLUE + "[Mekanism]" + EnumColor.GREY + " The latest version for this mod is " + EnumColor.DARK_GREY + Mekanism.latestVersionNumber + EnumColor.GREY + "."));
sender.addChatMessage(new ChatComponentText(EnumColor.DARK_BLUE + "[Mekanism]" + EnumColor.GREY + " The latest version for mekanism is " + EnumColor.DARK_GREY + Mekanism.latestVersionNumber + EnumColor.GREY + "."));
}
else if(params[0].equalsIgnoreCase("teleporter"))
{
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/mekanism/common/Mekanism.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
* @author AidanBrady
*
*/
@Mod(modid = "Mekanism", name = "Mekanism", version = "T.10.5", guiFactory = "mekanism.client.gui.ConfigGuiFactory",
@Mod(modid = "Mekanism", name = "Mekanism", version = "9.10.5", guiFactory = "mekanism.client.gui.ConfigGuiFactory",
dependencies = "after:ForgeMultipart;after:BuildCraft;after:BuildCraftAPI;after:IC2;after:CoFHCore;" +
"after:ComputerCraft;after:Galacticraft API;after:MetallurgyCore")
public class Mekanism
Expand All @@ -170,7 +170,7 @@ public class Mekanism
public static Configuration configuration;

/** Mekanism version number */
public static Version versionNumber = new Version(9, 10, 4);
public static Version versionNumber = new Version(9, 10, 5);

/** MultiblockManagers for various structrures */
public static MultiblockManager<SynchronizedTankData> tankManager = new MultiblockManager<SynchronizedTankData>("dynamicTank");
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/mekanism/common/ThreadGetData.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ThreadGetData()
@Override
public void run()
{
List<String> ret = MekanismUtils.getHTML("http://technic-solder.eu-central-1.linodeobjects.com/mekanism/Mekanism.txt");
List<String> ret = MekanismUtils.getHTML("https://technic-solder.eu-central-1.linodeobjects.com/mekanism/Mekanism.txt");

Mekanism.latestVersionNumber = "null";
Mekanism.recentNews = "null";
Expand All @@ -30,7 +30,7 @@ public void run()
{
String[] text = s.split(":");

if(text.length == 3 && !text[0].contains("UTF-8") && !text[0].contains("HTML") && !text[0].contains("http"))
if(text.length == 3 && !text[0].contains("UTF-8") && !text[0].contains("HTML") && !text[0].contains("https"))
{
if(Version.get(text[0]) != null && Version.get(text[0]).equals(Version.get((String)FMLInjectionData.data()[4])))
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mekanism/common/util/MekanismUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static boolean checkForUpdates(EntityPlayer entityplayer)

entityplayer.addChatMessage(new ChatComponentText(EnumColor.GREY + " " + LangUtils.localize("update.consider") + " " + EnumColor.DARK_GREY + Mekanism.latestVersionNumber));
entityplayer.addChatMessage(new ChatComponentText(EnumColor.GREY + " " + LangUtils.localize("update.newFeatures") + ": " + EnumColor.INDIGO + Mekanism.recentNews));
entityplayer.addChatMessage(new ChatComponentText(EnumColor.GREY + " " + LangUtils.localize("update.visit") + " " + EnumColor.DARK_GREY + "aidancbrady.com/mekanism" + EnumColor.GREY + " " + LangUtils.localize("update.toDownload") + "."));
entityplayer.addChatMessage(new ChatComponentText(EnumColor.GREY + " " + LangUtils.localize("update.visit") + " " + EnumColor.DARK_GREY + "https://thorfusion.com" + EnumColor.GREY + " " + LangUtils.localize("update.toDownload") + "."));
entityplayer.addChatMessage(new ChatComponentText(EnumColor.GREY + "------------- " + EnumColor.DARK_BLUE + "[=======]" + EnumColor.GREY + " -------------"));
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.network.NetworkRegistry;

@Mod(modid = "MekanismGenerators", name = "MekanismGenerators", version = "T.10.5", dependencies = "required-after:Mekanism", guiFactory = "mekanism.generators.client.gui.GeneratorsGuiFactory")
@Mod(modid = "MekanismGenerators", name = "MekanismGenerators", version = "9.10.5", dependencies = "required-after:Mekanism", guiFactory = "mekanism.generators.client.gui.GeneratorsGuiFactory")
public class MekanismGenerators implements IModule
{
@SidedProxy(clientSide = "mekanism.generators.client.GeneratorsClientProxy", serverSide = "mekanism.generators.common.GeneratorsCommonProxy")
Expand All @@ -54,7 +54,7 @@ public class MekanismGenerators implements IModule
public static MekanismGenerators instance;

/** MekanismGenerators version number */
public static Version versionNumber = new Version(9, 10, 3);
public static Version versionNumber = new Version(9, 10, 5);

public static MultiblockManager<SynchronizedTurbineData> turbineManager = new MultiblockManager<SynchronizedTurbineData>("industrialTurbine");

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/mekanism/tools/common/MekanismTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;

@Mod(modid = "MekanismTools", name = "MekanismTools", version = "T.10.5", dependencies = "required-after:Mekanism", guiFactory = "mekanism.tools.client.gui.ToolsGuiFactory")
@Mod(modid = "MekanismTools", name = "MekanismTools", version = "9.10.5", dependencies = "required-after:Mekanism", guiFactory = "mekanism.tools.client.gui.ToolsGuiFactory")
public class MekanismTools implements IModule
{
@SidedProxy(clientSide = "mekanism.tools.client.ToolsClientProxy", serverSide = "mekanism.tools.common.ToolsCommonProxy")
Expand All @@ -39,7 +39,7 @@ public class MekanismTools implements IModule
public static MekanismTools instance;

/** MekanismTools version number */
public static Version versionNumber = new Version(9, 10, 3);
public static Version versionNumber = new Version(9, 10, 5);

//Enums: Tools
public static ToolMaterial toolOBSIDIAN;
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"modid": "MekanismGenerators",
"name": "Terralization MekanismGenerators",
"description": "Generators module of Mekanism.",
"version": "T.10.5",
"version": "9.10.5",
"mcversion": "1.7.10",
"updateUrl": "",
"authorList": ["aidancbrady", "maggi373"],
Expand All @@ -29,7 +29,7 @@
"modid": "MekanismTools",
"name": "Terralization MekanismTools",
"description": "Tools module for Mekanism.",
"version": "T.10.5",
"version": "9.10.5",
"mcversion": "1.7.10",
"updateUrl": "",
"authorList": ["aidancbrady", "maggi373"],
Expand Down

0 comments on commit dcc53c4

Please sign in to comment.