From 099ad908e559e0d4753fe265462b2263dc6f3ba3 Mon Sep 17 00:00:00 2001 From: draknyte1 Date: Tue, 14 Feb 2017 22:53:38 +1000 Subject: + 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. --- .../core/handler/events/LoginEventHandler.java | 34 ++++++++++++---------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'src/Java/gtPlusPlus/core/handler/events') 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++."); + } + } -- cgit