Exemplo n.º 1
0
 public void handlePackets()
 {
     field_22003_h = false;
     netManager.processReadPackets();
     if (field_15_f - field_22004_g > 20)
     {
         sendPacket(new Packet0KeepAlive());
     }
 }
Exemplo n.º 2
0
 public void tryLogin()
 {
     if (field_9004_h != null)
     {
         doLogin(field_9004_h);
         field_9004_h = null;
     }
     if (loginTimer++ == 600)
     {
         kickUser("Took too long to log in");
     }
     else
     {
         netManager.processReadPackets();
     }
 }