mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 05:15:13 +00:00
Upside-down stairs placement
This commit is contained in:
parent
8df59078ad
commit
a3260814b8
@ -39,7 +39,7 @@ class StairBlock extends TransparentBlock{
|
|||||||
3 => 3,
|
3 => 3,
|
||||||
);
|
);
|
||||||
$this->meta = $faces[$player->entity->getDirection()] & 0x03;
|
$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
|
$this->meta |= 0x04; //Upside-down stairs
|
||||||
}
|
}
|
||||||
$level->setBlock($block, $this->id, $this->meta);
|
$level->setBlock($block, $this->id, $this->meta);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user