mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Fixed player not dying
This commit is contained in:
@ -3204,9 +3204,9 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
public function setHealth($amount){
|
||||
parent::setHealth($amount);
|
||||
if($this->spawned === true){
|
||||
// $pk = new SetHealthPacket();
|
||||
// $pk->health = $this->getHealth();
|
||||
// $this->dataPacket($pk);
|
||||
$pk = new SetHealthPacket();
|
||||
$pk->health = $this->getHealth();
|
||||
$this->dataPacket($pk);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user