water damage tweaks, using php8 pack functions

This commit is contained in:
GameHerobrine 2024-01-01 08:15:05 +03:00
parent 229a563ff5
commit 68b8232f07
17 changed files with 46 additions and 76 deletions

View file

@ -66,14 +66,14 @@ abstract class Living extends Entity implements Damageable, Pathfindable{
}
}
public function update(){
public function update($now){
if(self::$despawnMobs && ++$this->ticksExisted > self::$despawnTimer){
$this->close();
return;
}
if($this->closed) return;
parent::update();
parent::update($now);
}
public function updateEntityMovement(){