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,11 +146,11 @@ class Trapdoor extends Transparent{
public function onActivate(Item $item, Player $player = null){ public function onActivate(Item $item, Player $player = null){
$this->meta ^= 0x04; $this->meta ^= 0x04;
$this->getLevel()->setBlock($this, $this, true); $this->getLevel()->setBlock($this, $this, true);
$this->level->addSound(new DoorSound($this));
return true; return true;
} }
public function getToolType(){ public function getToolType(){
return Tool::TYPE_AXE; return Tool::TYPE_AXE;
} }
} }