Small changes, Ellie

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-30 20:49:34 +01:00
parent d0a08d16e7
commit 9ef2dc6fe1
3 changed files with 4 additions and 4 deletions

View file

@ -92,7 +92,7 @@ class Player{
}
public function save(){
if(is_object($this->entity)){
if($this->entity instanceof Entity){
$this->data["spawn"] = array(
"x" => $this->entity->x,
"y" => $this->entity->y,
@ -521,7 +521,7 @@ class Player{
}
break;
case MC_MOVE_PLAYER:
if(is_object($this->entity)){
if($this->entity instanceof Entity){
$this->entity->setPosition($data["x"], $data["y"], $data["z"], $data["yaw"], $data["pitch"]);
$this->server->api->dhandle("player.move", $this->entity);
}