diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-11 00:59:40 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-11 00:59:40 +1000 |
commit | 65e7be449116dc3364e9df4d5ec3cba83c5d1884 (patch) | |
tree | 1b61f7e4f24f4cbdef726fe9d5373aa21197139d /src/Java/gtPlusPlus/core/handler | |
parent | 7ceb735ceda71bdef542773c4b3e95b0eeba6d35 (diff) | |
download | GT5-Unofficial-65e7be449116dc3364e9df4d5ec3cba83c5d1884.tar.gz GT5-Unofficial-65e7be449116dc3364e9df4d5ec3cba83c5d1884.tar.bz2 GT5-Unofficial-65e7be449116dc3364e9df4d5ec3cba83c5d1884.zip |
$ Fixed a mistake in the version checking.
> comparing Strings with == not .equals()
Diffstat (limited to 'src/Java/gtPlusPlus/core/handler')
-rw-r--r-- | src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java b/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java index b35a42017d..1db26846c7 100644 --- a/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java +++ b/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java @@ -34,8 +34,13 @@ public class LoginEventHandler { PlayerCache.appendParamChanges(localPlayersName, localPlayersUUID.toString()); if (!CORE.isModUpToDate){ - Utils.LOG_INFO("You're not using the latest version of GT++, consider updating."); - Utils.messagePlayer(localPlayerRef, "You're not using the latest version of GT++, consider updating."); + Utils.LOG_INFO("You're not using the latest recommended version of GT++, consider updating."); + Utils.LOG_INFO("Latest version is: "+CORE.MASTER_VERSION); + Utils.LOG_INFO("You currently have: "+CORE.VERSION); + Utils.messagePlayer(localPlayerRef, "You're not using the latest recommended version of GT++, consider updating."); + } + else { + Utils.LOG_INFO("You're using the latest recommended version of GT++."); } } |