mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
attackplayer task fix
This commit is contained in:
parent
0ca6becc6a
commit
d0a262a3da
9 changed files with 100 additions and 262 deletions
|
|
@ -14,7 +14,7 @@ class TaskSwimming extends TaskBase
|
|||
|
||||
public function onUpdate(EntityAI $ai)
|
||||
{
|
||||
if(!$ai->entity->inWater || !$ai->entity->inLava){
|
||||
if(!$ai->entity->inWater && !$ai->entity->inLava){
|
||||
$this->reset();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue