small fixes

This commit is contained in:
Shoghi Cervantes
2014-02-19 02:23:45 +01:00
parent dd177b689b
commit d12ce8fd6c
4 changed files with 5 additions and 4 deletions

View File

@@ -1658,7 +1658,7 @@ class Player{
$this->entity->updateMetadata();
}
if($this->blocked === true or ($this->entity->position instanceof Vector3 and $blockVector->distance($this->entity->position) > 10)){
if($this->blocked === true or ($this->entity instanceof Entity and $blockVector->distance($this->entity) > 10)){
}elseif($this->getSlot($this->slot)->getID() !== $packet->item or ($this->getSlot($this->slot)->isTool() === false and $this->getSlot($this->slot)->getMetadata() !== $packet->meta)){
$this->sendInventorySlot($this->slot);