Remove now-unnecessary complexity in VoiceConnection.run
@@ -50,11 +50,8 @@ public class VoiceConnection extends Thread
try {
List<EntityPlayerMP> l = Collections.synchronizedList(new ArrayList<>(server.getPlayerList().getPlayers()));
- for(Object obj : l)
+ for(EntityPlayerMP playerMP : l)
{
- if(obj instanceof EntityPlayerMP)
- {
- EntityPlayerMP playerMP = (EntityPlayerMP)obj;
String playerIP = playerMP.getPlayerIP();
if(!server.isDedicatedServer() && playerIP.equals("local") && !Mekanism.voiceManager.foundLocal)
@@ -69,7 +66,6 @@ public class VoiceConnection extends Thread
break;
}
}
- }
retryCount++;
Thread.sleep(50);
