From a3260814b8f01379f86cf4f783d47736ad0b024f Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sun, 3 Feb 2013 21:01:21 +0100 Subject: [PATCH] Upside-down stairs placement --- src/classes/material/block/StairBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/material/block/StairBlock.php b/src/classes/material/block/StairBlock.php index 017748d5..7aca67ac 100644 --- a/src/classes/material/block/StairBlock.php +++ b/src/classes/material/block/StairBlock.php @@ -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);