diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2017-07-06 23:38:59 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2017-07-06 23:38:59 +1000 |
commit | fd994517395f1db5e7cff51501649110765fac16 (patch) | |
tree | 0fefb27a8152f842d6629062eb0bad004b3c7576 /src/Java/gtPlusPlus/core/handler/events | |
parent | 02719c54d8566366736485c4b28ff66b6020e3af (diff) | |
download | GT5-Unofficial-fd994517395f1db5e7cff51501649110765fac16.tar.gz GT5-Unofficial-fd994517395f1db5e7cff51501649110765fac16.tar.bz2 GT5-Unofficial-fd994517395f1db5e7cff51501649110765fac16.zip |
^ Version Bump ready for new release.
+ Added new methods to handle more dynamic versioning.
Diffstat (limited to 'src/Java/gtPlusPlus/core/handler/events')
-rw-r--r-- | src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java b/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java index b787acd02d..e12608d488 100644 --- a/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java +++ b/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java @@ -9,6 +9,7 @@ import gtPlusPlus.core.proxy.ClientProxy; import gtPlusPlus.core.util.Utils; import gtPlusPlus.core.util.player.PlayerCache; import gtPlusPlus.core.util.player.PlayerUtils; +import gtPlusPlus.core.util.version.VersionUtils; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; @@ -41,9 +42,7 @@ public class LoginEventHandler { if (!CORE.isModUpToDate){ Utils.LOG_INFO("You're not using the latest recommended version of GT++, consider updating."); - if (!CORE.MASTER_VERSION.toLowerCase().equals("offline")) { - Utils.LOG_INFO("Latest version is: "+CORE.MASTER_VERSION); - } + Utils.LOG_INFO("Latest version is: "+VersionUtils.getVersionObjectAsString(CORE.MASTER_VERSION)); Utils.LOG_INFO("You currently have: "+CORE.VERSION); ShortTimer(this.localPlayerRef, 20); } |