This commit is contained in:
kotyara 2024-03-15 20:13:32 +05:00 • committed by GitHub
parent 437576a981
commit a4b7fbf2df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 24 additions and 24 deletions

View file

@ -179,7 +179,7 @@ abstract class Living extends Entity implements Pathfindable{
if($this->isCollidedHorizontally && $this->isFree($this->speedX, $this->speedY + 0.6 - $this->y + $prevPosY, $this->speedZ)){
$this->speedY = 0.3;
}
}else if($this->inLava){
}elseif($this->inLava){
$prevPosY = $this->y;
$this->moveFlying($strafe, $forward, 0.02);
$this->move($this->speedX, $this->speedY, $this->speedZ);