mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 15:36:08 +00:00
Player: fixed suspicious ground state check
fixes #3552 and #3553 for non-spectator-gamemode situations this would've caused problems if setHasBlockCollision(false) was used in other game modes
This commit is contained in:
@@ -1304,7 +1304,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer, Nev
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function checkGroundState(float $wantedX, float $wantedY, float $wantedZ, float $dx, float $dy, float $dz) : void{
|
protected function checkGroundState(float $wantedX, float $wantedY, float $wantedZ, float $dx, float $dy, float $dz) : void{
|
||||||
if($this->gamemode === GameMode::SPECTATOR){
|
if(!$this->blockCollision){
|
||||||
$this->onGround = false;
|
$this->onGround = false;
|
||||||
}else{
|
}else{
|
||||||
$bb = clone $this->boundingBox;
|
$bb = clone $this->boundingBox;
|
||||||
|
Reference in New Issue
Block a user