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

@ -319,7 +319,7 @@ class Entity extends stdClass{
}
public function spawn($player){
if(!is_object($player)){
if(!($player instanceof Player)){
$player = $this->server->api->player->get($player);
}
if($player->eid === $this->eid){