mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
ExperienceOrb: fixed behaviour when placing blocks on top of them
This commit is contained in:
parent
2ff3b12376
commit
2e4519cb36
@ -209,4 +209,13 @@ class ExperienceOrb extends Entity{
|
||||
|
||||
return $hasUpdate;
|
||||
}
|
||||
|
||||
protected function tryChangeMovement(){
|
||||
$this->checkObstruction($this->x, $this->y, $this->z);
|
||||
parent::tryChangeMovement();
|
||||
}
|
||||
|
||||
public function canBeCollidedWith() : bool{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user