Added correct Painting placing checks & bigger Paintings

This commit is contained in:
Shoghi Cervantes Pueyo
2013-04-23 15:32:09 +02:00
parent dffbfa0754
commit 13aa73d26e
2 changed files with 32 additions and 11 deletions

View File

@ -187,7 +187,7 @@ class Entity extends stdClass{
return false;
}
if(($time - $this->spawntime) >= 2){
$player = $this->server->query("SELECT EID FROM entities WHERE class == ".ENTITY_PLAYER." AND abs(x - {$this->x}) <= 1.5 AND abs(y - {$this->y}) <= 1.5 AND abs(z - {$this->z}) <= 1.5 LIMIT 1;", true);
$player = $this->server->query("SELECT EID FROM entities WHERE class = ".ENTITY_PLAYER." AND abs(x - {$this->x}) <= 1.5 AND abs(y - {$this->y}) <= 1.5 AND abs(z - {$this->z}) <= 1.5 LIMIT 1;", true);
$player = $this->server->api->entity->get($player["EID"]);
if($player instanceof Entity){
$player = $player->player;