swimming fixed

This commit is contained in:
GameHerobrine 2024-01-13 05:13:06 +03:00
parent 3d1dba6b86
commit 6eb13e5bd4
16 changed files with 170 additions and 16 deletions

View file

@ -10,6 +10,7 @@ class Zombie extends Monster{
$this->ai->addTask(new TaskRandomWalk(0.25));
$this->ai->addTask(new TaskLookAround());
$this->ai->addTask(new TaskSwimming());
}
public function getArmorValue(){
@ -17,7 +18,7 @@ class Zombie extends Monster{
}
public function updateBurning(){
if($this->fire > 0 or !$this->level->isDay()){
if($this->fire > 0 or !$this->level->isDay() || $this->inWater){ //TODO fix burning in water
return false;
}