From 44dc1b13e3a7f3153adf655ec1e81f0cc13c7567 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Mon, 25 Feb 2013 20:54:16 +0100 Subject: [PATCH] Fixed breaking a bed from the bottom part --- src/material/block/misc/Bed.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/material/block/misc/Bed.php b/src/material/block/misc/Bed.php index fd05b8d7..6415ef4b 100644 --- a/src/material/block/misc/Bed.php +++ b/src/material/block/misc/Bed.php @@ -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;