mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-20 18:34:07 +00:00
parent
ca6930006c
commit
905259a4e1
@ -535,7 +535,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function canBeCollidedWith() : bool{
|
public function canBeCollidedWith() : bool{
|
||||||
return !$this->isSpectator();
|
return !$this->isSpectator() and parent::canBeCollidedWith();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function resetFallDistance() : void{
|
public function resetFallDistance() : void{
|
||||||
|
@ -1101,7 +1101,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function canBeCollidedWith() : bool{
|
public function canBeCollidedWith() : bool{
|
||||||
return true;
|
return $this->isAlive();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function updateMovement(bool $teleport = false) : void{
|
protected function updateMovement(bool $teleport = false) : void{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user