mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Fixed position error
This commit is contained in:
parent
ac3472eff4
commit
2562d8fc41
@ -1638,7 +1638,7 @@ class Player{
|
||||
$this->entity->updateMetadata();
|
||||
}
|
||||
|
||||
if($this->blocked === true or $blockVector->distance($this->entity->position) > 10){
|
||||
if($this->blocked === true or ($this->entity->position instanceof Vector3 and $blockVector->distance($this->entity->position) > 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);
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user