mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Upside-down stairs placement
This commit is contained in:
parent
8df59078ad
commit
a3260814b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue