Bump the version number, add some NPE protection to the version checker
This commit is contained in:
parent
112b74dd30
commit
487fc17d19
3 changed files with 7 additions and 7 deletions
|
@ -1,15 +1,14 @@
|
|||
package com.pahimar.ee3.core.handlers;
|
||||
|
||||
import com.pahimar.ee3.event.WorldTransmutationEvent;
|
||||
|
||||
import com.pahimar.ee3.event.ActionEvent;
|
||||
import net.minecraftforge.event.ForgeSubscribe;
|
||||
|
||||
|
||||
public class WorldTransmutationHandler {
|
||||
|
||||
@ForgeSubscribe
|
||||
public void onWorldTransmutationEvent(WorldTransmutationEvent event) {
|
||||
System.out.println(event.toString());
|
||||
public void onWorldTransmutationEvent(ActionEvent event) {
|
||||
|
||||
System.out.println(event.data);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ public class VersionHelper {
|
|||
returnString = returnString.replace("@MINECRAFT_VERSION@", Loader.instance().getMCVersionString());
|
||||
return returnString;
|
||||
}
|
||||
else if (result == OUTDATED) {
|
||||
else if ((result == OUTDATED) && (remoteVersion != null) && (remoteUpdateLocation != null)) {
|
||||
String returnString = LanguageRegistry.instance().getStringLocalization(Strings.OUTDATED_MESSAGE);
|
||||
returnString = returnString.replace("@MOD_NAME@", Reference.MOD_NAME);
|
||||
returnString = returnString.replace("@REMOTE_MOD_VERSION@", remoteVersion);
|
||||
|
|
|
@ -5,4 +5,5 @@
|
|||
<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.5">pre1d|http://goo.gl/Ria2V</entry>
|
||||
<entry key="Minecraft 1.4.6">pre1d|http://goo.gl/Ria2V</entry>
|
||||
</properties>
|
Loading…
Reference in a new issue