mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Merge commit 'a2543ff80d2906bccda1a4e2fdbd9d8e7d147fb3'
This commit is contained in:
@ -88,7 +88,7 @@ class FenceGate extends Transparent{
|
||||
$inWall = $this->checkInWall();
|
||||
if($inWall !== $this->inWall){
|
||||
$this->inWall = $inWall;
|
||||
$this->pos->getWorld()->setBlock($this->pos, $this);
|
||||
$this->pos->getWorldNonNull()->setBlock($this->pos, $this);
|
||||
}
|
||||
}
|
||||
|
||||
@ -101,8 +101,8 @@ class FenceGate extends Transparent{
|
||||
}
|
||||
}
|
||||
|
||||
$this->pos->getWorld()->setBlock($this->pos, $this);
|
||||
$this->pos->getWorld()->addSound($this->pos, new DoorSound());
|
||||
$this->pos->getWorldNonNull()->setBlock($this->pos, $this);
|
||||
$this->pos->getWorldNonNull()->addSound($this->pos, new DoorSound());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user