inWorld === true){ $faces = array( 0 => 0, 1 => 2, 2 => 1, 3 => 3, ); $this->meta = $faces[$player->entity->getDirection()] & 0x03; if(($fy > 0.5 and $face !== 1) or $face === 0){ $this->meta |= 0x04; //Upside-down stairs } $level->setBlock($block, $this->id, $this->meta); return true; } return false; } public function getDrops(Item $item, Player $player){ return array( array($this->id, 0, 1), ); } }