Merge branch 'next-minor' into modern-world-support

This commit is contained in:
Dylan K. Taylor
2022-02-19 20:36:20 +00:00
6 changed files with 23 additions and 20 deletions

View File

@ -166,7 +166,7 @@ class Bed extends Transparent{
}
public function onNearbyBlockChange() : void{
if(($other = $this->getOtherHalf()) !== null && $other->occupied !== $this->occupied){
if(!$this->head && ($other = $this->getOtherHalf()) !== null && $other->occupied !== $this->occupied){
$this->occupied = $other->occupied;
$this->position->getWorld()->setBlock($this->position, $this);
}