Bug fixes!

This commit is contained in:
Aidan Brady committed 2013-12-09 17:54:59 -05:00
1 parent ac31fc2b4e
commit add3cf0bf6
3 files changed
+26 -22

No files matched your search

@@ -17,8 +17,6 @@ import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class ClientConnectionHandler implements IConnectionHandler
{
public VoiceClient voiceClient;
@Override
public void playerLoggedIn(Player player, NetHandler netHandler, INetworkManager manager) {}
@@ -35,8 +33,8 @@ public class ClientConnectionHandler implements IConnectionHandler
if(Mekanism.voiceServerEnabled)
{
try {
voiceClient = new VoiceClient(server, Mekanism.VOICE_PORT);
voiceClient.start();
MekanismClient.voiceClient = new VoiceClient(server, Mekanism.VOICE_PORT);
MekanismClient.voiceClient.start();
} catch(Exception e) {}
}
}
@@ -48,29 +46,14 @@ public class ClientConnectionHandler implements IConnectionHandler
if(Mekanism.voiceServerEnabled)
{
try {
voiceClient = new VoiceClient(InetAddress.getLocalHost().getHostAddress(), Mekanism.VOICE_PORT);
voiceClient.start();
MekanismClient.voiceClient = new VoiceClient(InetAddress.getLocalHost().getHostAddress(), Mekanism.VOICE_PORT);
MekanismClient.voiceClient.start();
} catch(Exception e) {}
}
}
@Override
public void connectionClosed(INetworkManager manager)
{
if(Mekanism.voiceServerEnabled)
{
if(voiceClient != null)
{
voiceClient.disconnect();
voiceClient = null;
}
}
ClientTickHandler.tickingSet.clear();
Mekanism.jetpackOn.clear();
Mekanism.gasmaskOn.clear();
Mekanism.proxy.unloadSoundHandler();
}
public void connectionClosed(INetworkManager manager) {}
@Override
public void clientLoggedIn(NetHandler clientHandler, INetworkManager manager, Packet1Login login) {}