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

@ -463,9 +463,9 @@ class CustomPacketHandler{
break;
case MC_SET_HEALTH:
if($this->c === false){
$this->data["health"] = ord($this->get(1));
$this->data["health"] = Utils::readByte($this->get(1));
}else{
$this->raw .= chr($this->data["health"]);
$this->raw .= Utils::writeByte($this->data["health"]);
}
break;
case MC_ANIMATE: