mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Merge pull request #3368 from thebigsmileXD/patch-2
Added sound for opening/closing (FenceGates)
This commit is contained in:
commit
5a626405e3
@ -107,7 +107,7 @@ class FenceGate extends Transparent{
|
||||
];
|
||||
$this->meta = ($faces[$player instanceof Player ? $player->getDirection() : 0] & 0x03) | ((~$this->meta) & 0x04);
|
||||
$this->getLevel()->setBlock($this, $this, true);
|
||||
|
||||
$this->level->addSound(new DoorSound($this));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user