diff options
author | draknyte1 <draknyte1@hotmail.com> | 2017-02-14 22:53:38 +1000 |
---|---|---|
committer | draknyte1 <draknyte1@hotmail.com> | 2017-02-14 22:53:38 +1000 |
commit | 099ad908e559e0d4753fe265462b2263dc6f3ba3 (patch) | |
tree | f86580ef3ed0423680761dc3fe36f0e84363af2b /src/Java/gtPlusPlus/core/handler | |
parent | c5a1e14c4e5ba4cd514c8f8a7050fe74de6183bb (diff) | |
download | GT5-Unofficial-099ad908e559e0d4753fe265462b2263dc6f3ba3.tar.gz GT5-Unofficial-099ad908e559e0d4753fe265462b2263dc6f3ba3.tar.bz2 GT5-Unofficial-099ad908e559e0d4753fe265462b2263dc6f3ba3.zip |
+ Added Plasma cells for all missing elements. (Adds a few extra, which will get removed).
+ Added a function to generate Plasma.
- Removed Bedrockium generation.
$ Fixed the chemical symbol for Thallium.
$ Fixed an issue where a String in ClientProxy.java was being set server side.
Diffstat (limited to 'src/Java/gtPlusPlus/core/handler')
-rw-r--r-- | src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java b/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java index d5764fa86b..40a4b6e501 100644 --- a/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java +++ b/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java @@ -12,6 +12,8 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.PlayerEvent; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; public class LoginEventHandler { @@ -25,9 +27,11 @@ public class LoginEventHandler { this.localPlayerRef = event.player; this.localPlayersName = event.player.getDisplayName(); this.localPlayersUUID = event.player.getUniqueID(); - + //Set this for easier use elsewhere. - ClientProxy.playerName = this.localPlayersName; + if (event.player.getEntityWorld().isRemote){ + ClientProxy.playerName = this.localPlayersName; + } try { @@ -36,19 +40,19 @@ public class LoginEventHandler { //Populates player cache if (!localPlayerRef.worldObj.isRemote){ - PlayerCache.appendParamChanges(localPlayersName, localPlayersUUID.toString()); - - 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("You currently have: "+CORE.VERSION); - PlayerUtils.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++."); - } - + PlayerCache.appendParamChanges(localPlayersName, localPlayersUUID.toString()); + + 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("You currently have: "+CORE.VERSION); + PlayerUtils.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++."); + } + } |