mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Remove single beds
This commit is contained in:
parent
1b92b1177c
commit
e2d4b49266
@ -71,11 +71,7 @@ class BedBlock extends TransparentBlock{
|
|||||||
$level->setBlock($blockEast, AIR, 0);
|
$level->setBlock($blockEast, AIR, 0);
|
||||||
}elseif($blockWest->getID() === $this->id and $blockWest->meta !== 0x08){
|
}elseif($blockWest->getID() === $this->id and $blockWest->meta !== 0x08){
|
||||||
$level->setBlock($blockWest, AIR, 0);
|
$level->setBlock($blockWest, AIR, 0);
|
||||||
}else{
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
$level->setBlock($this, AIR, 0);
|
|
||||||
return true;
|
|
||||||
}else{ //Bottom Part of Bed
|
}else{ //Bottom Part of Bed
|
||||||
if($blockNorth->getID() === $this->id and ($blockNorth->meta & 0x08) === 0x08){
|
if($blockNorth->getID() === $this->id and ($blockNorth->meta & 0x08) === 0x08){
|
||||||
$level->setBlock($blockNorth, AIR, 0);
|
$level->setBlock($blockNorth, AIR, 0);
|
||||||
@ -85,13 +81,10 @@ class BedBlock extends TransparentBlock{
|
|||||||
$level->setBlock($blockEast, AIR, 0);
|
$level->setBlock($blockEast, AIR, 0);
|
||||||
}elseif($blockWest->getID() === $this->id and ($blockWest->meta & 0x08) === 0x08){
|
}elseif($blockWest->getID() === $this->id and ($blockWest->meta & 0x08) === 0x08){
|
||||||
$level->setBlock($blockWest, AIR, 0);
|
$level->setBlock($blockWest, AIR, 0);
|
||||||
}else{
|
}
|
||||||
return false;
|
|
||||||
}
|
|
||||||
$level->setBlock($this, AIR, 0);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
$level->setBlock($this, AIR, 0);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user