Upside-down stairs placement

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-03 21:01:21 +01:00
parent 8df59078ad
commit a3260814b8

View File

@ -39,7 +39,7 @@ class StairBlock extends TransparentBlock{
3 => 3,
);
$this->meta = $faces[$player->entity->getDirection()] & 0x03;
if($fy > 0.5){
if(($fy > 0.5 and $face !== 1) or $face === 0){
$this->meta |= 0x04; //Upside-down stairs
}
$level->setBlock($block, $this->id, $this->meta);