mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
code style fix
This commit is contained in:
parent
fc5c5625cb
commit
5e8e9330e2
361 changed files with 4766 additions and 4650 deletions
|
|
@ -9,7 +9,7 @@ class TaskSwimming extends TaskBase
|
|||
|
||||
public function onEnd(EntityAI $ai)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function onUpdate(EntityAI $ai)
|
||||
|
|
@ -18,12 +18,12 @@ class TaskSwimming extends TaskBase
|
|||
$this->reset();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if(lcg_value() < 0.8){ #1.5.2 method
|
||||
$ai->mobController->setJumping(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function canBeExecuted(EntityAI $ai)
|
||||
{
|
||||
return $ai->entity->inWater || $ai->entity->inLava;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue