diff --git a/src/pocketmine/block/Bed.php b/src/pocketmine/block/Bed.php index 830310ea5..8a3131616 100644 --- a/src/pocketmine/block/Bed.php +++ b/src/pocketmine/block/Bed.php @@ -85,7 +85,7 @@ class Bed extends Transparent{ $this->getLevel()->setBlock($this, $this, false, false); - if(($other = $this->getOtherHalf()) !== null and !$other->isOccupied()){ + if(($other = $this->getOtherHalf()) !== null and $other->isOccupied() !== $occupied){ $other->setOccupied($occupied); } }