mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Better damage handling + cactus damage
This commit is contained in:
parent
061faaa410
commit
09385daf60
2 changed files with 48 additions and 29 deletions
|
|
@ -50,7 +50,7 @@ class PlayerAPI{
|
|||
if($player->dead === true){
|
||||
continue;
|
||||
}
|
||||
$player->setHealth(min(20, $player->entity->getHealth() + $data), "regeneration");
|
||||
$player->setHealth(min(20, $player->getHealth() + $data), "regeneration");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue