From 4803f14a218626b146957db7d4af9e82e3e97270 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 8 Jun 2013 17:25:15 +0200 Subject: [PATCH] Removed chat repeating lag issues --- src/Player.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Player.php b/src/Player.php index 111e9c8a68..862f2e8a2b 100644 --- a/src/Player.php +++ b/src/Player.php @@ -44,7 +44,6 @@ class Player{ private $eid = false; private $startAction = false; private $queue = array(); - private $need = array(); public $data; public $entity = false; public $auth = false; @@ -898,14 +897,7 @@ class Player{ if(isset($data[0])){ $this->send(0xc0, array(array($data[0]))); $diff = $data[0] - $this->counter[1]; - unset($this->need[$data[0]]); if($diff > 1){ //Packet recovery - $arr = array(); - for($i = $this->counter[1]; $i < $data[0]; ++$i){ - $arr[] = $i; - $this->need[$i] = true; - } - $this->send(0xa0, $arr); $this->queue[$data[0]] = array($pid, $data); break; }else{