Fixed a few wrong fields

This commit is contained in:
Shoghi Cervantes
2014-02-08 01:25:03 +01:00
parent f6ecf51516
commit 1f5ff78f06
5 changed files with 14 additions and 14 deletions

View File

@ -1000,9 +1000,9 @@ class Entity extends Position{
$this->server->api->dhandle("entity.event", array("entity" => $this, "event" => 2)); //Ouch! sound
}
if($this->player instanceof Player){
$this->player->dataPacket(ProtocolInfo::SET_HEALTH_PACKET, array(
"health" => $this->health,
));
$pk = new SetHealthPacket;
$pk->health = $this->health;
$this->player->dataPacket($pk);
}
if($this->health <= 0 and $this->dead === false){
$this->spawnDrops();