Fixed some slot sending

This commit is contained in:
Shoghi Cervantes
2013-06-06 19:02:30 +02:00
parent adce1ad920
commit 5e45567c1d
2 changed files with 12 additions and 10 deletions

View File

@@ -217,7 +217,7 @@ class Entity extends Position{
public function environmentUpdate(){
$hasUpdate = false;
$time = microtime(true);
if($this->class === ENTITY_PLAYER and ($this->player instanceof Player) and $this->player->spawned === true){
if($this->class === ENTITY_PLAYER and ($this->player instanceof Player) and $this->player->spawned === true and $this->player->blocked !== true){
foreach($this->server->api->entity->getRadius($this, 1.5, ENTITY_ITEM) as $item){
if(($time - $item->spawntime) >= 0.6){
if(($this->player->gamemode & 0x01) === 0x00){