mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed fly kick in water, lava, cobweb and ladder
This commit is contained in:
parent
48c1aa1cb9
commit
01b3e01db5
1 changed files with 5 additions and 0 deletions
|
|
@ -791,6 +791,10 @@ class Entity extends Position
|
|||
}
|
||||
}
|
||||
|
||||
if($id == WATER || $id === STILL_WATER || $id === COBWEB || $id == LAVA || $id === STILL_LAVA){
|
||||
$this->notOnGroundTicks = 0;
|
||||
}
|
||||
|
||||
intersects:
|
||||
if($y <= floor($this->boundingBox->minY) && !$this->onGround){
|
||||
if($intersects > 0) $this->onGround = count($bounds) > 0;
|
||||
|
|
@ -828,6 +832,7 @@ class Entity extends Position
|
|||
|
||||
if($this->isOnLadder()){
|
||||
$this->fallDistance = 0;
|
||||
$this->notOnGroundTicks = 0;
|
||||
$this->fallStart = $this->y;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue