From 311d8d94dd1d5530ab20aa54fe38d29a53ce34a4 Mon Sep 17 00:00:00 2001 From: thebigsmileXD Date: Tue, 11 Aug 2015 12:48:41 +0200 Subject: [PATCH] Added sound for opening/closing (FenceGates) Added DoorSound on opening/closing FenceGates depending on #3367 @0929hitoshi 's Idea --- src/pocketmine/block/FenceGate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/block/FenceGate.php b/src/pocketmine/block/FenceGate.php index 582ddc92c..7c0e0f8ea 100644 --- a/src/pocketmine/block/FenceGate.php +++ b/src/pocketmine/block/FenceGate.php @@ -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; } -} \ No newline at end of file +}