Merge pull request #3367 from thebigsmileXD/patch-1

Added opening/closing sound
This commit is contained in:
Shoghi Cervantes 2015-08-11 12:27:18 +02:00
commit 7d0810a5af

View File

@ -146,7 +146,7 @@ class Trapdoor extends Transparent{
public function onActivate(Item $item, Player $player = null){
$this->meta ^= 0x04;
$this->getLevel()->setBlock($this, $this, true);
$this->level->addSound(new DoorSound($this));
return true;
}