forked from MineClone5/MineClone5
Add dug sounds to kelp when unsubmerged
This commit is contained in:
parent
9518086b6b
commit
089d6aa5c8
|
@ -452,6 +452,7 @@ function kelp.surface_on_timer(pos)
|
||||||
local dig_pos = kelp.find_unsubmerged(pos, node)
|
local dig_pos = kelp.find_unsubmerged(pos, node)
|
||||||
if dig_pos then
|
if dig_pos then
|
||||||
-- chatlog("detach_dig")
|
-- chatlog("detach_dig")
|
||||||
|
mt_sound_play(mt_registered_nodes[node.name].sounds.dug, { gain = 0.5, pos = dig_pos }, true)
|
||||||
kelp.detach_dig(dig_pos, pos, node, true, pos_hash)
|
kelp.detach_dig(dig_pos, pos, node, true, pos_hash)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue