mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add BlockMaterial.hitSound
This commit is contained in:
parent
17e4776f95
commit
ce9853d813
4 changed files with 11 additions and 4 deletions
|
|
@ -573,6 +573,10 @@ void ContentLoader::loadBlockMaterial(
|
|||
root.at("steps-sound").get(def.stepsSound);
|
||||
root.at("place-sound").get(def.placeSound);
|
||||
root.at("break-sound").get(def.breakSound);
|
||||
root.at("hit-sound").get(def.hitSound);
|
||||
if (def.hitSound.empty()) {
|
||||
def.hitSound = def.stepsSound;
|
||||
}
|
||||
}
|
||||
|
||||
void ContentLoader::loadContent(const dv::value& root) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue