mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fixed breaking a bed from the bottom part
This commit is contained in:
parent
8d522077c4
commit
44dc1b13e3
@ -76,13 +76,13 @@ class BedBlock extends TransparentBlock{
|
||||
}
|
||||
return true;
|
||||
}else{ //Bottom Part of Bed
|
||||
if($blockNorth->getID() === $this->id and $blockNorth->meta === 0x08){
|
||||
if($blockNorth->getID() === $this->id and ($blockNorth->meta & 0x08) === 0x08){
|
||||
$level->setBlock($blockNorth, 0, 0);
|
||||
}elseif($blockSouth->getID() === $this->id and $blockSouth->meta === 0x08){
|
||||
}elseif($blockSouth->getID() === $this->id and ($blockSouth->meta & 0x08) === 0x08){
|
||||
$level->setBlock($blockSouth, 0, 0);
|
||||
}elseif($blockEast->getID() === $this->id and $blockEast->meta === 0x08){
|
||||
}elseif($blockEast->getID() === $this->id and ($blockEast->meta & 0x08) === 0x08){
|
||||
$level->setBlock($blockEast, 0, 0);
|
||||
}elseif($blockWest->getID() === $this->id and $blockWest->meta === 0x08){
|
||||
}elseif($blockWest->getID() === $this->id and ($blockWest->meta & 0x08) === 0x08){
|
||||
$level->setBlock($blockWest, 0, 0);
|
||||
}else{
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user