mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Added upside-down stairs
This commit is contained in:
parent
50ae0953ac
commit
104817162d
2 changed files with 10 additions and 0 deletions
|
|
@ -491,6 +491,10 @@ class BlockAPI{
|
|||
case 53://Stairs
|
||||
case 67:
|
||||
case 108:
|
||||
case 109:
|
||||
case 114:
|
||||
case 128:
|
||||
case 156:
|
||||
$faces = array(
|
||||
0 => 0,
|
||||
1 => 2,
|
||||
|
|
@ -498,6 +502,9 @@ class BlockAPI{
|
|||
3 => 3,
|
||||
);
|
||||
$data["meta"] = $faces[$direction] & 0x03;
|
||||
if(($data["y"] - 1) > $entity->y){
|
||||
$data["meta"] |= 0x04; //Upside-down stairs
|
||||
}
|
||||
break;
|
||||
case 96: //trapdoor
|
||||
if(isset(Material::$transparent[$target[0]])){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue