Adds beds

This commit is contained in:
Shoghi Cervantes
2013-09-03 22:50:47 +02:00
parent f7508adb29
commit 1677ce4b1d
4 changed files with 59 additions and 13 deletions

View File

@@ -575,6 +575,11 @@ class Entity extends Position{
$this->data["Color"] = mt_rand(0,15);
}
$d[16]["value"] = (($this->data["Sheared"] == 1 ? 1:0) << 4) | ($this->data["Color"] & 0x0F);
}elseif($this->class === ENTITY_PLAYER){
if($this->player->isSleeping !== false){
$d[16]["value"] = 2;
$d[17]["value"] = array($this->player->isSleeping->x, $this->player->isSleeping->y, $this->player->isSleeping->z);
}
}
return $d;
}