mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
water damage tweaks, using php8 pack functions
This commit is contained in:
parent
229a563ff5
commit
68b8232f07
17 changed files with 46 additions and 76 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue