Added opening sound

This commit is contained in:
thebigsmileXD 2015-08-11 11:52:08 +02:00
parent ff232a9f04
commit a5efd0bdf8

View File

@ -146,11 +146,11 @@ 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;
}
public function getToolType(){
return Tool::TYPE_AXE;
}
}
}