Fall damage

This commit is contained in:
Shoghi Cervantes Pueyo
2013-01-05 19:37:01 +01:00
parent 586f49994a
commit f03f376535
2 changed files with 6 additions and 3 deletions

View File

@@ -388,11 +388,14 @@ class Player{
$this->entity->setHealth(20, "respawn");
$this->entity->setPosition($data["x"], $data["y"], $data["z"], 0, 0);
break;
case MC_SET_HEALTH:
$this->entity->setHealth($data["health"], "client");
break;
case MC_DROP_ITEM:
$this->server->api->block->drop($this->entity->x, $this->entity->y, $this->entity->z, $data["block"], $data["meta"], $data["stack"]);
break;
default:
console("[INTERNAL] Unhandled 0x".dechex($data["id"])." Data Packet for Client ID ".$this->clientID.": ".print_r($data), true, true, 3);
console("[INTERNAL] Unhandled 0x".dechex($data["id"])." Data Packet for Client ID ".$this->clientID.": ".print_r($data, true), true, true, 3);
break;
}
break;