mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
swimming tweaks, fall damage tweaks
This commit is contained in:
parent
6b68b88572
commit
db8b221c02
5 changed files with 34 additions and 4 deletions
|
|
@ -16,10 +16,12 @@ class TaskSwimming extends TaskBase
|
|||
{
|
||||
if(!$ai->entity->inWater){
|
||||
$this->reset();
|
||||
$ai->mobController->setJumping(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if(Utils::randomFloat() < 0.8){ #1.5.2 method
|
||||
$ai->entity->speedY = 0.42;
|
||||
$ai->mobController->setJumping(true);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue