Added sound for opening/closing (FenceGates)

Added DoorSound on opening/closing FenceGates depending on #3367 @0929hitoshi 's Idea
This commit is contained in:
thebigsmileXD 2015-08-11 12:48:41 +02:00
parent 7d0810a5af
commit 311d8d94dd

View File

@ -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;
}
}
}