mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 23:03:01 +00:00
<400 errors
This commit is contained in:
1 parent
af008b9395
commit
c73eef6be8
90 files changed
+880
-749
No files matched your search
@@ -18,7 +18,7 @@ public class ClientConnectionHandler
|
||||
{
|
||||
if(general.voiceServerEnabled)
|
||||
{
|
||||
if(event.isLocal)
|
||||
if(event.isLocal())
|
||||
{
|
||||
//If the client is connecting to its own corresponding integrated server.
|
||||
try {
|
||||
@@ -32,7 +32,7 @@ public class ClientConnectionHandler
|
||||
else {
|
||||
//If the client is connecting to a foreign integrated or dedicated server.
|
||||
try {
|
||||
MekanismClient.voiceClient = new VoiceClient(((InetSocketAddress)event.manager/*TODO is this right?*/.getRemoteAddress()).getHostString());
|
||||
MekanismClient.voiceClient = new VoiceClient(((InetSocketAddress)event.getManager().getRemoteAddress()).getHostString());
|
||||
} catch(Throwable e) {
|
||||
Mekanism.logger.error("Unable to establish VoiceClient on remote connection.");
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in new issue
Block a user