Bump the version number, add some NPE protection to the version checker

This commit is contained in:
pahimar 2012-12-18 13:13:20 -05:00
parent 112b74dd30
commit 487fc17d19
3 changed files with 7 additions and 7 deletions

View file

@ -1,15 +1,14 @@
package com.pahimar.ee3.core.handlers; package com.pahimar.ee3.core.handlers;
import com.pahimar.ee3.event.WorldTransmutationEvent; import com.pahimar.ee3.event.ActionEvent;
import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.ForgeSubscribe;
public class WorldTransmutationHandler { public class WorldTransmutationHandler {
@ForgeSubscribe @ForgeSubscribe
public void onWorldTransmutationEvent(WorldTransmutationEvent event) { public void onWorldTransmutationEvent(ActionEvent event) {
System.out.println(event.toString());
System.out.println(event.data);
} }
} }

View file

@ -119,7 +119,7 @@ public class VersionHelper {
returnString = returnString.replace("@MINECRAFT_VERSION@", Loader.instance().getMCVersionString()); returnString = returnString.replace("@MINECRAFT_VERSION@", Loader.instance().getMCVersionString());
return returnString; return returnString;
} }
else if (result == OUTDATED) { else if ((result == OUTDATED) && (remoteVersion != null) && (remoteUpdateLocation != null)) {
String returnString = LanguageRegistry.instance().getStringLocalization(Strings.OUTDATED_MESSAGE); String returnString = LanguageRegistry.instance().getStringLocalization(Strings.OUTDATED_MESSAGE);
returnString = returnString.replace("@MOD_NAME@", Reference.MOD_NAME); returnString = returnString.replace("@MOD_NAME@", Reference.MOD_NAME);
returnString = returnString.replace("@REMOTE_MOD_VERSION@", remoteVersion); returnString = returnString.replace("@REMOTE_MOD_VERSION@", remoteVersion);

View file

@ -5,4 +5,5 @@
<entry key="Minecraft 1.4.2">pre1a|http://goo.gl/Ria2V</entry> <entry key="Minecraft 1.4.2">pre1a|http://goo.gl/Ria2V</entry>
<entry key="Minecraft 1.4.4">pre1b|http://goo.gl/Ria2V</entry> <entry key="Minecraft 1.4.4">pre1b|http://goo.gl/Ria2V</entry>
<entry key="Minecraft 1.4.5">pre1d|http://goo.gl/Ria2V</entry> <entry key="Minecraft 1.4.5">pre1d|http://goo.gl/Ria2V</entry>
<entry key="Minecraft 1.4.6">pre1d|http://goo.gl/Ria2V</entry>
</properties> </properties>