Correct teleporting with the new player list handling

This commit is contained in:
Shoghi Cervantes 2013-08-20 02:06:14 +02:00
parent 7102787aa9
commit bf1b00f0e6
4 changed files with 42 additions and 37 deletions

View file

@ -266,11 +266,11 @@ class CustomPacketHandler{
break;
case MC_REMOVE_PLAYER:
if($this->c === false){
$this->data["clientID"] = Utils::readLong($this->get(8));
$this->data["eid"] = Utils::readInt($this->get(4));
$this->data["clientID"] = Utils::readLong($this->get(8));
}else{
$this->raw .= Utils::writeLong($this->data["clientID"]);
$this->raw .= Utils::writeInt($this->data["eid"]);
$this->raw .= Utils::writeLong($this->data["clientID"]);
}
break;
case MC_ADD_ENTITY: