From 71dd3fe3af7bd7d2de306fc2ae1b7d7582235529 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 4 Sep 2013 12:41:04 +0200 Subject: [PATCH] Send broken bed block directly [no cache] --- src/material/block/misc/Bed.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/material/block/misc/Bed.php b/src/material/block/misc/Bed.php index 0ea9ad4a..5814c9a5 100644 --- a/src/material/block/misc/Bed.php +++ b/src/material/block/misc/Bed.php @@ -71,26 +71,26 @@ class BedBlock extends TransparentBlock{ if(($this->meta & 0x08) === 0x08){ //This is the Top part of bed if($blockNorth->getID() === $this->id and $blockNorth->meta !== 0x08){ //Checks if the block ID and meta are right - $this->level->setBlock($blockNorth, new AirBlock()); + $this->level->setBlock($blockNorth, new AirBlock(), true, false, true); }elseif($blockSouth->getID() === $this->id and $blockSouth->meta !== 0x08){ - $this->level->setBlock($blockSouth, new AirBlock()); + $this->level->setBlock($blockSouth, new AirBlock(), true, false, true); }elseif($blockEast->getID() === $this->id and $blockEast->meta !== 0x08){ - $this->level->setBlock($blockEast, new AirBlock()); + $this->level->setBlock($blockEast, new AirBlock(), true, false, true); }elseif($blockWest->getID() === $this->id and $blockWest->meta !== 0x08){ - $this->level->setBlock($blockWest, new AirBlock()); + $this->level->setBlock($blockWest, new AirBlock(), true, false, true); } }else{ //Bottom Part of Bed if($blockNorth->getID() === $this->id and ($blockNorth->meta & 0x08) === 0x08){ - $this->level->setBlock($blockNorth, new AirBlock()); + $this->level->setBlock($blockNorth, new AirBlock(), true, false, true); }elseif($blockSouth->getID() === $this->id and ($blockSouth->meta & 0x08) === 0x08){ - $this->level->setBlock($blockSouth, new AirBlock()); + $this->level->setBlock($blockSouth, new AirBlock(), true, false, true); }elseif($blockEast->getID() === $this->id and ($blockEast->meta & 0x08) === 0x08){ - $this->level->setBlock($blockEast, new AirBlock()); + $this->level->setBlock($blockEast, new AirBlock(), true, false, true); }elseif($blockWest->getID() === $this->id and ($blockWest->meta & 0x08) === 0x08){ - $this->level->setBlock($blockWest, new AirBlock()); + $this->level->setBlock($blockWest, new AirBlock(), true, false, true); } } - $this->level->setBlock($this, new AirBlock()); + $this->level->setBlock($this, new AirBlock(), true, false, true); return true; }