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

@@ -594,7 +594,7 @@ class Entity extends Position{
}
switch($this->class){
case ENTITY_PLAYER:
if($this->player->connected !== true or $this->spawned === false){
if($this->player->connected !== true or $this->player->spawned === false){
return false;
}
$player->dataPacket(MC_ADD_PLAYER, array(